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 spray...@googlegroups.com
Hi,
In ChunkedMessageEnd definition:
case class ChunkedMessageEnd(extension: String = "", trailer: List[HttpHeader] = Nil) extends HttpRequestPart with HttpResponsePart with HttpMessageEnd {
What's the purpose for extension and trailer (how does they impact on the final output)?
If I generate some HttpHeader in trailer, will these headers finally output to browser?
Thanks
Ma Ling
Mathias Doenitz
unread,
Mar 9, 2015, 5:48:44 AM3/9/15
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 spray...@googlegroups.com
Leon,
the trailer headers are a feature of HTTP (http://tools.ietf.org/html/rfc7230#section-4.1.2), which spray must support in order to be able to call itself HTTP-compliant.
My impression is that trailer headers aren’t that widely used in the wild (similarly to chunk extensions) but I might be wrong.
Maybe someone else can comment on a real-world use case?