onHttpClientUpgrade() — netty Function Reference
Architecture documentation for the onHttpClientUpgrade() function in Http2ConnectionHandler.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 62ad413b_566d_e31b_30b0_3e314fc8865c["onHttpClientUpgrade()"] a9ab361d_2417_0366_d9d0_ae1adb2145dc["Http2ConnectionHandler"] 62ad413b_566d_e31b_30b0_3e314fc8865c -->|defined in| a9ab361d_2417_0366_d9d0_ae1adb2145dc 7ac4a90e_d0ae_14a9_10cc_cd77b04bff6c["prefaceSent()"] 62ad413b_566d_e31b_30b0_3e314fc8865c -->|calls| 7ac4a90e_d0ae_14a9_10cc_cd77b04bff6c style 62ad413b_566d_e31b_30b0_3e314fc8865c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java lines 149–164
public void onHttpClientUpgrade() throws Http2Exception {
if (connection().isServer()) {
throw connectionError(PROTOCOL_ERROR, "Client-side HTTP upgrade requested for a server");
}
if (!prefaceSent()) {
// If the preface was not sent yet it most likely means the handler was not added to the pipeline before
// calling this method.
throw connectionError(INTERNAL_ERROR, "HTTP upgrade must occur after preface was sent");
}
if (decoder.prefaceReceived()) {
throw connectionError(PROTOCOL_ERROR, "HTTP upgrade must occur before HTTP/2 preface is received");
}
// Create a local stream used for the HTTP cleartext upgrade.
connection().local().createStream(HTTP_UPGRADE_STREAM_ID, true);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does onHttpClientUpgrade() do?
onHttpClientUpgrade() is a function in the netty codebase, defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java.
Where is onHttpClientUpgrade() defined?
onHttpClientUpgrade() is defined in codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ConnectionHandler.java at line 149.
What does onHttpClientUpgrade() call?
onHttpClientUpgrade() calls 1 function(s): prefaceSent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free