Package brave.http

Class HttpClientResponse

    • Constructor Detail

      • HttpClientResponse

        public HttpClientResponse()
    • Method Detail

      • request

        @Nullable
        public HttpClientRequest 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