* Strip header whitespace in C
Fix#1890
Co-authored-by: Matthew Draper <matthew@trebex.net>
* Add Java extension to do the same
Co-authored-by: Charles Nutter <headius@headius.com>
* Changelog
* Use fastARef/fastASet for hash access to avoid context load.
* Cache most Java strings used to create headers as ByteLists, to
avoid re-encoding and re-constructing the byte[] and ByteList.
* Load parse buffer once in field handler.
* Eliminate deprecated construction of RaiseException and
centralize logic.
The parser stores headers in a Ruby hash table so that when a header
is found twice its value replaces the old one. As per RFC[1] this is
not correct, since duplicated headers should all be considered. In
particular, they are semantically equivalent to a single header with
comma separated values. In this case, we follow existing practice of
joining values with a comma and a single space character.
[1] See RFC2616 section 4.2:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
* Rename Mongrel to Puma and move files appropriately
* Add HttParser11#body method
* Fix native.rake to not attempt C ext under JRuby
* Mask out all of test_unix_socket.rb under JRuby
2011-11-22 13:43:54 -06:00
Renamed from ext/puma_http11/org/jruby/mongrel/Http11.java (Browse further)