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:
1.10.0
  • Method Summary

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

    • headerNames

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

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

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

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

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