decode() — netty Function Reference
Architecture documentation for the decode() function in SpdyHttpResponseStreamIdHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD ec40cfc6_a422_59cd_081e_6541109d600d["decode()"] ada1cbd9_2a06_e5f3_e6aa_cfcab58b75c1["SpdyHttpResponseStreamIdHandler"] ec40cfc6_a422_59cd_081e_6541109d600d -->|defined in| ada1cbd9_2a06_e5f3_e6aa_cfcab58b75c1 style ec40cfc6_a422_59cd_081e_6541109d600d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java lines 57–71
@Override
protected void decode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {
if (msg instanceof HttpMessage) {
boolean contains = ((HttpMessage) msg).headers().contains(SpdyHttpHeaders.Names.STREAM_ID);
if (!contains) {
ids.add(NO_ID);
} else {
ids.add(((HttpMessage) msg).headers().getInt(Names.STREAM_ID));
}
} else if (msg instanceof SpdyRstStreamFrame) {
ids.remove(((SpdyRstStreamFrame) msg).streamId());
}
out.add(ReferenceCountUtil.retain(msg));
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does decode() do?
decode() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java.
Where is decode() defined?
decode() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpResponseStreamIdHandler.java at line 57.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free