netty5/codec-http/src/main/java/io/netty/handler/codec/http
Norman Maurer e4995be33c Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377)
Motivation:

In many places Netty uses Unpooled.buffer(0) while should use EMPTY_BUFFER. We can't change this due to back compatibility in the constructors but can use Unpooled.EMPTY_BUFFER in some cases to ensure we not allocate at all. In others we can directly use the allocator either from the Channel / ChannelHandlerContext or the request / response.

Modification:

- Use Unpooled.EMPTY_BUFFER where possible
- Use allocator where possible

Result:

Fixes #9345 for websockets and http package
2019-07-18 10:36:03 +02:00
..
cookie Avoid unnecessary char casts for CookieEncoder (#8827) 2019-02-25 19:50:46 +01:00
cors Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:36:03 +02:00
multipart Return null in HttpPostRequestEncoder (#9352) 2019-07-16 13:30:07 +02:00
websocketx Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:36:03 +02:00
CombinedHttpHeaders.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
ComposedLastHttpContent.java Set result for decoded request and add test for #8721 (#8721) 2019-01-21 07:45:21 +01:00
DefaultFullHttpRequest.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultFullHttpResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultHttpContent.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultHttpHeaders.java use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 15:55:07 +01:00
DefaultHttpMessage.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultHttpObject.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultHttpRequest.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultHttpResponse.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
DefaultLastHttpContent.java migrate java8: use lambda and method reference (#8781) 2019-01-29 14:06:05 +01:00
EmptyHttpHeaders.java Remove deprecated HttpHeaders sub classes and related classes (#8813) 2019-01-31 20:26:45 +01:00
FullHttpMessage.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
FullHttpRequest.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
FullHttpResponse.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
HttpChunkedInput.java Fix possible NPE in HttpCunkedInput if wrapped ChunkedInput.readChunk(...) return null. 2016-06-17 06:27:04 +02:00
HttpClientCodec.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00
HttpClientUpgradeHandler.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
HttpConstants.java [#4010] Correctly handle whitespaces in HttpPostMultipartRequestDecoder 2015-08-14 21:16:42 +02:00
HttpContent.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02:00
HttpContentCompressor.java When the response exceeds the threshold, it will be compressed 2018-02-25 16:43:45 +01:00
HttpContentDecoder.java HttpContentDecoder must continue read when it did not produce any mes… (#8922) 2019-03-07 10:41:44 +01:00
HttpContentDecompressor.java Ensure the same ByteBufAllocator is used in the EmbeddedChannel when compress / decompress. Related to [#5294] 2016-05-31 09:08:33 +02:00
HttpContentEncoder.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
HttpExpectationFailedEvent.java HttpObjectAggregator doesn't check content-length header 2015-08-17 09:26:50 -07:00
HttpHeaderNames.java Immediate caching the strings wrapped to AsciiString 2017-08-15 06:22:14 +02:00
HttpHeaders.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
HttpHeadersEncoder.java Use ByteBuf#writeShort/writeMedium instead of writeBytes 2017-07-10 14:37:41 +02:00
HttpHeaderValues.java Immediate caching the strings wrapped to AsciiString 2017-08-15 06:22:14 +02:00
HttpMessage.java Remove 'get' prefix from all HTTP/SPDY messages 2014-06-24 18:03:33 +09:00
HttpMessageUtil.java Implement toString() for all HttpMessage implementations 2014-12-31 18:39:00 +09:00
HttpMethod.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
HttpObject.java Introduce MessageAggregator and DecoderResultProvider 2014-06-05 16:51:14 +09:00
HttpObjectAggregator.java Do not manually reset HttpObjectDecoder in HttpObjectAggregator.handleOversizedMessage(...) (#9017) 2019-04-08 21:11:23 +02:00
HttpObjectDecoder.java use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 15:55:07 +01:00
HttpObjectEncoder.java Mention the HttpObjectEncoder's state in the message of the IllegalStateException (#7996) 2018-06-04 10:14:58 +02:00
HttpRequest.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
HttpRequestDecoder.java Remove the maxChunkSize parameter for HTTP codecs (#8671) 2018-12-20 07:37:51 +01:00
HttpRequestEncoder.java Only add / to uri if really needed. 2017-07-18 09:24:19 +02:00
HttpResponse.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
HttpResponseDecoder.java Remove the maxChunkSize parameter for HTTP codecs (#8671) 2018-12-20 07:37:51 +01:00
HttpResponseEncoder.java Correctly handle responses with status 205 and payload. (#7891) 2018-05-03 11:25:06 +02:00
HttpResponseStatus.java use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 15:55:07 +01:00
HttpScheme.java Immediate caching the strings wrapped to AsciiString 2017-08-15 06:22:14 +02:00
HttpServerCodec.java Compare HttpMethod by reference (#8815) 2019-01-30 21:17:24 +01:00
HttpServerExpectContinueHandler.java Deprecate ChannelInboundHandlerAdapter and ChannelOutboundHandlerAdapter (#8929) 2019-03-13 09:46:10 +01:00
HttpServerKeepAliveHandler.java Merge ChannelInboundHandler and ChannelOutboundHandler into ChannelHa… (#8957) 2019-03-28 09:28:27 +00:00
HttpServerUpgradeHandler.java Fix h2c upgrade failure when multiple connection headers are present in upgrade request (#8848) 2019-02-12 08:10:47 -08:00
HttpStatusClass.java Immediate caching the strings wrapped to AsciiString 2017-08-15 06:22:14 +02:00
HttpUtil.java Fix HttpUtil.isKeepAlive to behave correctly when Connection is a comma separated list (#8924) 2019-03-13 14:30:46 +01:00
HttpVersion.java use checkPositive/checkPositiveOrZero (#8835) 2019-02-04 15:55:07 +01:00
LastHttpContent.java Make retained derived buffers recyclable 2016-05-17 11:16:13 +02: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 Change the netty.io homepage scheme(http -> https) (#9344) 2019-07-09 21:10:14 +02:00
QueryStringEncoder.java migrate java8: use requireNonNull (#8840) 2019-02-04 10:32:25 +01:00
ReadOnlyHttpHeaders.java Java 8 migration: Use diamond operator (#8749) 2019-01-22 16:07:26 +01:00