You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to servic...@googlegroups.com
I'm new to ServiceStack, so perhaps I'm missing something...but how do I set headers in the response? It's nice that many of them are taken care of automatically, but if I want to allow a POST and set the Location header as part of the response (or a custom header, for that matter), how could that be done?
Thanks!
Dave
Demis Bellot
unread,
Mar 12, 2012, 1:44:36 PM3/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to servic...@googlegroups.com
This example shows how to set Global and per service HTTP headers:
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to servic...@googlegroups.com
Right, I understand it's pretty easy to set global and per-service headers. Setting response headers in an OnPost method is what I'm looking for here. When my service receives a POST (per http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2), I would like the 201 response to include the Location and ETag headers.
Thanks for the quick reply-
Dave
On Monday, March 12, 2012 1:44:36 PM UTC-4, mythz wrote:
This example shows how to set Global and per service HTTP headers: