Interface HttpServerRequest

All Superinterfaces:
HttpRequest, Request

public interface HttpServerRequest extends HttpRequest
This API is taken from OpenZipkin Brave.

Abstract request type used for parsing and sampling. Represents an HTTP Server request.

Since:
1.10.0
  • Method Details

    • getAttribute

      default Object getAttribute(String key)
      Returns an HTTP attribute.
      Parameters:
      key - attribute key
      Returns:
      attribute with the given key or null if not set
    • setAttribute

      default void setAttribute(String key, Object value)
      Sets an HTTP attribute.
      Parameters:
      key - attribute key
      value - attribute value
    • kind

      default io.micrometer.observation.transport.Kind kind()
      Description copied from interface: Request
      Returns the transport kind.
      Specified by:
      kind in interface Request
      Returns:
      the remote kind describing the direction and type of the request