Interface Response

All Known Subinterfaces:
HttpClientResponse, HttpResponse, HttpServerResponse

@Deprecated public interface Response
Deprecated.
scheduled for removal in 1.4.0
This API is taken from OpenZipkin Brave.

Abstract response type used for parsing and sampling.

Since:
1.10.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the exception.
    Deprecated.
    Returns the header names.
    io.micrometer.observation.transport.Kind
    Deprecated.
    Returns the transport kind.
    Deprecated.
    Returns the HTTP request.
    Deprecated.
    Returns the underlying response object.
  • Method Details

    • headerNames

      Collection<String> headerNames()
      Deprecated.
      Returns the header names.
      Returns:
      collection of header names
    • request

      @Nullable Request request()
      Deprecated.
      Returns the HTTP request.
      Returns:
      corresponding request
    • error

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

      Object unwrap()
      Deprecated.
      Returns the underlying response object.
      Returns:
      the underlying response object or null if there is none.
    • kind

      io.micrometer.observation.transport.Kind kind()
      Deprecated.
      Returns the transport kind.
      Returns:
      the remote kind describing the direction and type of the response