testEmptyHeaderValue() — netty Function Reference
Architecture documentation for the testEmptyHeaderValue() function in HttpRequestDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 66869e84_b133_839e_3a4e_1cb3363bb02c["testEmptyHeaderValue()"] 514322d5_436a_d1ac_6240_1f9cf42934a4["HttpRequestDecoderTest"] 66869e84_b133_839e_3a4e_1cb3363bb02c -->|defined in| 514322d5_436a_d1ac_6240_1f9cf42934a4 style 66869e84_b133_839e_3a4e_1cb3363bb02c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java lines 260–270
@Test
public void testEmptyHeaderValue() {
EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());
String crlf = "\r\n";
String request = "GET /some/path HTTP/1.1" + crlf +
"Host: localhost" + crlf +
"EmptyHeader:" + crlf + crlf;
channel.writeInbound(Unpooled.copiedBuffer(request, CharsetUtil.US_ASCII));
HttpRequest req = channel.readInbound();
assertEquals("", req.headers().get(of("EmptyHeader")));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testEmptyHeaderValue() do?
testEmptyHeaderValue() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java.
Where is testEmptyHeaderValue() defined?
testEmptyHeaderValue() is defined in codec-http/src/test/java/io/netty/handler/codec/http/HttpRequestDecoderTest.java at line 260.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free