• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request and response

 
Clint A Wilde
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between response.addHeader() and response.setHeader()?

So responses can set or add headers.

requests can getHeaders. What would be a reason for using a header instead of using a parameter?
 
sawan parihar
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
addHeader is for multiple values.

cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic