Sure, I'll take the patch. Can I have a test that exercises that method?
Node's parser supports trailing headers, it would be nice to expose
them somehow to the JS layer...
Thanks. Yes, that's the preferred method.
>> Node's parser supports trailing headers, it would be nice to expose
>> them somehow to the JS layer...
>
> I had a quick look and didn't see it in http_parser.c -- could you
> point me in the right direction?
Just a server/client example in the test/simple directory in Node,
please. The http_parser already has tests for trailing headers.
Cheers,
> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
--
Mark Nottingham http://www.mnot.net/
I'm not sure about the interface though. It seems like it should be
something more like:
response.addTrailers({'TraceInfo': "everything went well.",
"Content-MD5", "xxxx"});
To match how the other header interfaces are using objects, rather
than passing a key/value in the parameters.
Thanks Mark. Landed in 4fe3007.
I used Paul's API suggestion.
Cheers,