FullHttpResponse() — netty Function Reference
Architecture documentation for the FullHttpResponse() function in SpdyHttpDecoder.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8c48508a_6208_bba0_b849_b44d393c8a28["FullHttpResponse()"] 025fd5f9_dfbe_4042_6d63_96c1c1168bd5["SpdyHttpDecoder"] 8c48508a_6208_bba0_b849_b44d393c8a28 -->|defined in| 025fd5f9_dfbe_4042_6d63_96c1c1168bd5 style 8c48508a_6208_bba0_b849_b44d393c8a28 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java lines 431–464
private FullHttpResponse createHttpResponse(SpdyHeadersFrame responseFrame, ByteBufAllocator alloc)
throws Exception {
// Create the first line of the response from the name/value pairs
SpdyHeaders headers = responseFrame.headers();
HttpResponseStatus status = HttpResponseStatus.parseLine(headers.get(STATUS));
HttpVersion version = HttpVersion.valueOf(headers.getAsString(VERSION));
headers.remove(STATUS);
headers.remove(VERSION);
boolean release = true;
ByteBuf buffer = alloc.buffer();
try {
FullHttpResponse res = new DefaultFullHttpResponse(
version, status, buffer, headersFactory, trailersFactory);
for (Map.Entry<CharSequence, CharSequence> e: responseFrame.headers()) {
res.headers().add(e.getKey(), e.getValue());
}
// The Connection and Keep-Alive headers are no longer valid
HttpUtil.setKeepAlive(res, true);
// Transfer-Encoding header is not valid
res.headers().remove(HttpHeaderNames.TRANSFER_ENCODING);
res.headers().remove(HttpHeaderNames.TRAILER);
release = false;
return res;
} finally {
if (release) {
buffer.release();
}
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does FullHttpResponse() do?
FullHttpResponse() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java.
Where is FullHttpResponse() defined?
FullHttpResponse() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java at line 431.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free