netty5/codec-http/src/main/java/io/netty/handler/codec/http
Norman Maurer 909d1f2c0f Reuse previous created HttpHeaders by HttpObjectAggregator
Motivation:

HttpObjectAggregator currently creates a new FullHttpResponse / FullHttpRequest for each message it needs to aggregate. While doing so it also creates 2 DefaultHttpHeader instances (one for the headers and one for the trailing headers). This is bad for two reasons:
  - More objects are created then needed and also populate the headers is not for free
  - Headers may get validated even if the validation was disabled in the decoder

Modification:

- Wrap the previous created HttpResponse / HttpRequest and so reuse the original HttpHeaders
- Reuse the previous created trailing HttpHeader.
- Fix a bug where the trailing HttpHeader was incorrectly mixed in the headers.

Result:

- Less GC
- Faster HttpObjectAggregator implementation
2014-07-11 07:08:12 +02:00
..
cors Fix most inspector warnings 2014-07-02 19:55:07 +09:00
multipart Fix most inspector warnings 2014-07-02 19:55:07 +09:00
websocketx Fix most inspector warnings 2014-07-02 19:55:07 +09:00
ClientCookieEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
ComposedLastHttpContent.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
Cookie.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
CookieDecoder.java [#1384] Cache HttpHeaderDateFormat in ThreadLocal 2013-05-23 11:39:50 +02:00
CookieEncoderUtil.java Refactor FastThreadLocal to simplify TLV management 2014-06-19 21:13:55 +09:00
CookieHeaderNames.java Update license headers 2012-06-04 13:31:44 -07:00
DefaultCookie.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultFullHttpRequest.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultFullHttpResponse.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultHttpContent.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
DefaultHttpHeaders.java Introduce TextHeaders and AsciiString 2014-06-14 15:36:19 +09:00
DefaultHttpMessage.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultHttpObject.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultHttpRequest.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultHttpResponse.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
DefaultLastHttpContent.java Backport the additional AsciiString/TextHeader changes from master 2014-06-14 17:33:34 +09:00
FullHttpMessage.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
FullHttpRequest.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
FullHttpResponse.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
HttpChunkedInput.java Fix inspector warnings 2014-01-15 17:18:19 +01:00
HttpClientCodec.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpConstants.java Update license headers 2012-06-04 13:31:44 -07:00
HttpContent.java Enable a user specify an arbitrary information with ReferenceCounted.touch() 2014-02-13 18:16:25 -08:00
HttpContentCompressor.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
HttpContentDecoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpContentDecompressor.java [#2005] Allow to use HttpContentDecompressor in strict mode 2013-11-26 08:22:01 +01:00
HttpContentEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpHeaderDateFormat.java Refactor FastThreadLocal to simplify TLV management 2014-06-19 21:13:55 +09:00
HttpHeaders.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
HttpHeadersEncoder.java Introduce TextHeaders and AsciiString 2014-06-14 15:36:19 +09:00
HttpMessage.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpMethod.java Synchronized between 4.1 and master 2014-04-25 00:38:02 +09:00
HttpObject.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
HttpObjectAggregator.java Reuse previous created HttpHeaders by HttpObjectAggregator 2014-07-11 07:08:12 +02:00
HttpObjectDecoder.java Fix most inspector warnings 2014-07-02 19:55:07 +09:00
HttpObjectEncoder.java Fix integer overflow in HttpObjectEncoder when handling chunked encoding and FileRegion > Integer.MAX_VALUE 2014-06-24 12:03:48 +02:00
HttpRequest.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpRequestDecoder.java Allow to disable validation of HTTP headers which shows a 5k perf improvement here when disabled 2013-11-14 07:45:03 +01:00
HttpRequestEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpResponse.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpResponseDecoder.java Allow to disable validation of HTTP headers which shows a 5k perf improvement here when disabled 2013-11-14 07:45:03 +01:00
HttpResponseEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpResponseStatus.java Introduce TextHeaders and AsciiString 2014-06-14 15:36:19 +09:00
HttpServerCodec.java Deprecate CombinedChannelDuplexHandler in favor of ChannelHandlerAppender 2014-02-13 19:20:25 -08:00
HttpVersion.java [#1682] HttpVersion.valueOf(...) should not convert to uppercase 2014-02-13 16:36:36 -08:00
LastHttpContent.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
package-info.java Remove apiviz tags - we are focusing on user guide instead and putting diagrams there 2013-02-14 12:09:16 -08:00
QueryStringDecoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
QueryStringEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
ServerCookieEncoder.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00