Home / Function/ HttpResponse() — netty Function Reference

HttpResponse() — netty Function Reference

Architecture documentation for the HttpResponse() function in HttpConversionUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  765e4dae_0a18_4297_55b8_38ddc91efd80["HttpResponse()"]
  cca5f017_2e30_72b9_fc2a_eca3446d8058["HttpConversionUtil"]
  765e4dae_0a18_4297_55b8_38ddc91efd80 -->|defined in| cca5f017_2e30_72b9_fc2a_eca3446d8058
  745f9797_2af2_8204_28cb_0ad4bef05465["addHttp3ToHttpHeaders()"]
  765e4dae_0a18_4297_55b8_38ddc91efd80 -->|calls| 745f9797_2af2_8204_28cb_0ad4bef05465
  style 765e4dae_0a18_4297_55b8_38ddc91efd80 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http3/src/main/java/io/netty/handler/codec/http3/HttpConversionUtil.java lines 290–306

    static HttpResponse toHttpResponse(final long streamId,
                                              final Http3Headers http3Headers,
                                              final boolean validateHttpHeaders) throws Http3Exception {
        final HttpResponseStatus status = parseStatus(streamId, http3Headers.status());
        // HTTP/3 does not define a way to carry the version or reason phrase that is included in an
        // HTTP/1.1 status line.
        final HttpResponse msg = new DefaultHttpResponse(HttpVersion.HTTP_1_1, status, validateHttpHeaders);
        try {
            addHttp3ToHttpHeaders(streamId, http3Headers, msg.headers(), msg.protocolVersion(), false, false);
        } catch (final Http3Exception e) {
            throw e;
        } catch (final Throwable t) {
            throw streamError(streamId, Http3ErrorCode.H3_MESSAGE_ERROR,
                    "HTTP/3 to HTTP/1.x headers conversion error", t);
        }
        return msg;
    }

Domain

Subdomains

Frequently Asked Questions

What does HttpResponse() do?
HttpResponse() is a function in the netty codebase, defined in codec-http3/src/main/java/io/netty/handler/codec/http3/HttpConversionUtil.java.
Where is HttpResponse() defined?
HttpResponse() is defined in codec-http3/src/main/java/io/netty/handler/codec/http3/HttpConversionUtil.java at line 290.
What does HttpResponse() call?
HttpResponse() calls 1 function(s): addHttp3ToHttpHeaders.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free