Package brave.http

Class HttpServerResponse

    • Constructor Detail

      • HttpServerResponse

        public HttpServerResponse()
    • Method Detail

      • request

        @Nullable
        public HttpServerRequest request()
        The request that initiated this HTTP response or null if unknown.

        Implementations should return the last wire-level request that caused this response or error. HTTP properties like path and headers might be different, due to redirects or authentication. Some properties might not be visible until response processing, notably HttpResponse.route().

        Overrides:
        request in class HttpResponse