sanitizeHeadersBeforeEncode() — netty Function Reference
Architecture documentation for the sanitizeHeadersBeforeEncode() function in HttpServerCodec.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 20b7a41c_c7d9_e298_8199_74200328a259["sanitizeHeadersBeforeEncode()"] 38759b78_d695_8e8a_0eaa_e5372bbbf0ff["HttpServerResponseEncoder"] 20b7a41c_c7d9_e298_8199_74200328a259 -->|defined in| 38759b78_d695_8e8a_0eaa_e5372bbbf0ff style 20b7a41c_c7d9_e298_8199_74200328a259 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/HttpServerCodec.java lines 182–193
@Override
protected void sanitizeHeadersBeforeEncode(HttpResponse msg, boolean isAlwaysEmpty) {
if (!isAlwaysEmpty && HttpMethod.CONNECT.equals(method)
&& msg.status().codeClass() == HttpStatusClass.SUCCESS) {
// Stripping Transfer-Encoding:
// See https://tools.ietf.org/html/rfc7230#section-3.3.1
msg.headers().remove(HttpHeaderNames.TRANSFER_ENCODING);
return;
}
super.sanitizeHeadersBeforeEncode(msg, isAlwaysEmpty);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sanitizeHeadersBeforeEncode() do?
sanitizeHeadersBeforeEncode() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpServerCodec.java.
Where is sanitizeHeadersBeforeEncode() defined?
sanitizeHeadersBeforeEncode() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpServerCodec.java at line 182.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free