netty5/codec-http/src/test/java/io/netty/handler/codec/http
Daniel Bevenius 74f418bace Adding support for specifying preflight response headers.
Motivation:

An intermediary like a load balancer might require that a Cross Origin
Resource Sharing (CORS) preflight request have certain headers set.
As a concrete example the Elastic Load Balancer (ELB) requires the
'Date' and 'Content-Length' header to be set or it will fail with a 502
error code.

This works is an enhancement of https://github.com/netty/netty/pull/2290

Modifications:

CorsConfig has been extended to make additional HTTP response headers
configurable for preflight responses. Since some headers, like the
'Date' header need to be generated each time, m0wfo suggested using a
Callable.

Result:

By default, the 'Date' and 'Content-Lenght' headers will be sent in a
preflight response. This can be overriden and users can specify
any headers that might be required by different intermediaries.
2014-03-21 15:40:59 +01:00
..
cors Adding support for specifying preflight response headers. 2014-03-21 15:40:59 +01:00
multipart [#2305] Fix issue related to decoding post request raized an exception due to a split of information by chunk not correctly taken into account by the decoder 2014-03-14 09:45:40 +01:00
websocketx Change the return type of EmbeddedChannel.read*() from Object to an ad-hoc type parameter 2014-02-13 17:19:26 -08:00
CookieDecoderTest.java [#1384] Cache HttpHeaderDateFormat in ThreadLocal 2013-05-23 11:39:50 +02:00
CookieEncoderTest.java [#1384] Cache HttpHeaderDateFormat in ThreadLocal 2013-05-23 11:39:50 +02:00
DefaultHttpRequestTest.java Change the WebSocket API to use HttpHeaders instead of Map<String, String> for custom headers / Cleanup 2013-01-17 00:33:40 +09:00
HttpChunkedInputTest.java Add HttpChunkedInput for easier streaming of chunked content 2014-01-15 17:18:19 +01:00
HttpClientCodecTest.java Fix all leaks reported during tests 2013-12-07 00:44:56 +09:00
HttpContentCompressorTest.java Change the return type of EmbeddedChannel.read*() from Object to an ad-hoc type parameter 2014-02-13 17:19:26 -08:00
HttpContentEncoderTest.java Fix all leaks reported during tests 2013-12-07 00:44:56 +09:00
HttpHeaderDateFormatTest.java [#1384] Cache HttpHeaderDateFormat in ThreadLocal 2013-05-23 11:39:50 +02:00
HttpHeadersTest.java Add test case for HttpHeaders.equalsIgnoreCase(...) 2013-11-28 18:24:22 +09:00
HttpInvalidMessageTest.java Ensure that the last bad chunk is LastHttpChunk 2014-02-19 15:19:35 -08:00
HttpObjectAggregatorTest.java Fix another leak in HttpObjectAggregatorTest by removing redundant code 2014-02-20 14:30:25 -08:00
HttpRequestDecoderTest.java Add an operation that resets the state of HttpObjectDecoder 2014-02-20 13:41:54 -08:00
HttpRequestEncoderTest.java HttpRequestEncoder should append '/' to absolute path requests only when needed 2013-09-22 13:41:35 +02:00
HttpResponseDecoderTest.java Fix checkstyle 2014-02-26 16:18:19 -08:00
HttpServerCodecTest.java Change the return type of EmbeddedChannel.read*() from Object to an ad-hoc type parameter 2014-02-13 17:19:26 -08:00
QueryStringDecoderTest.java [#1833] Add testcase for fix 2013-09-14 12:00:05 +02:00
QueryStringEncoderTest.java added support for empty query parameters 2014-03-10 06:46:08 +01:00