|
|
|
I see this committed to SVN:
Map headersMap = (Map) context.getContextualProperty(HTTP_HEADERS); I like the Object.toString()! That could come in handy. Is the support for several headers (so checking for instanceof Object[]) with the same name not desirable? Just curious if the String[] idea was a bad one. I fixed this before you attached your patch, so i couldn't see the idea with multiple values for one header. But still i don't see any potential situation when you must send many headers with the same name. If you show me any requirement of that kind i'll add such functionality.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
This patch will allow custom HTTP headers to be added as contextual properties. For example, the developer could set the header(s) like this:
this would produce the following headers:
The map can have either (String, String) or (String, String[]) since we are allowed to have headers with the same name.