Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Request and response  RSS feed

 
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?
 
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
Boost this thread!