Interface Response

  • All Known Subinterfaces:
    HttpClientResponse, HttpResponse, HttpServerResponse

    public interface Response
    This API is taken from OpenZipkin Brave. Abstract response type used for parsing and sampling.
    Since:
    3.0.0
    Author:
    OpenZipkin Brave Authors, Marcin Grzejszczak
    • Method Detail

      • spanKind

        Span.Kind spanKind()
        Returns:
        The remote Span.Kind describing the direction and type of the request.
      • request

        @Nullable
        Request request()
        Returns:
        corresponding request
      • error

        @Nullable
        Throwable error()
        Returns:
        exception that occurred or null if there was none.
      • unwrap

        Object unwrap()
        Returns:
        the underlying request object or null if there is none.