Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

response.addHeader()..doubt

 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need a clarification...

If a header already exists with a particular name..and then you invoke

response.addHeader("name","value");

what happens???

Regards
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like the sort of thing covered in the API, did you check?
 
A Kumar
Ranch Hand
Posts: 980
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you...

From the API..

public void addHeader(java.lang.String name,
java.lang.String value)
Adds a response header with the given name and value. This method allows response headers to have multiple values.
Parameters:
name - the name of the header
value - the additional header value

Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic