ImmediateSendDetector Type — netty Architecture
Architecture documentation for the ImmediateSendDetector type/interface in InboundHttp2ToHttpAdapter.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD a512f3d9_ed23_d457_3dd5_679a448ce04f["ImmediateSendDetector"] b162587a_9dd5_7767_85f1_a82b1fca64a0["InboundHttp2ToHttpAdapter.java"] a512f3d9_ed23_d457_3dd5_679a448ce04f -->|defined in| b162587a_9dd5_7767_85f1_a82b1fca64a0 style a512f3d9_ed23_d457_3dd5_679a448ce04f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapter.java lines 335–357
private interface ImmediateSendDetector {
/**
* Determine if the response should be sent immediately, or wait for the end of the stream
*
* @param msg The response to test
* @return {@code true} if the message should be sent immediately
* {@code false) if we should wait for the end of the stream
*/
boolean mustSendImmediately(FullHttpMessage msg);
/**
* Determine if a copy must be made after an immediate send happens.
* <p>
* An example of this use case is if a request is received
* with a 'Expect: 100-continue' header. The message will be sent immediately,
* and the data will be queued and sent at the end of the stream.
*
* @param allocator The {@link ByteBufAllocator} that can be used to allocate
* @param msg The message which has just been sent due to {@link #mustSendImmediately(FullHttpMessage)}
* @return A modified copy of the {@code msg} or {@code null} if a copy is not needed.
*/
FullHttpMessage copyIfNeeded(ByteBufAllocator allocator, FullHttpMessage msg);
}
Source
Frequently Asked Questions
What is the ImmediateSendDetector type?
ImmediateSendDetector is a type/interface in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapter.java.
Where is ImmediateSendDetector defined?
ImmediateSendDetector is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/InboundHttp2ToHttpAdapter.java at line 335.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free