Package brave.http

Class HttpClientRequest


public abstract class HttpClientRequest
extends HttpRequest
Marks an interface for use in HttpClientHandler.handleSend(HttpClientRequest). This gives a standard type to consider when parsing an outgoing context.
Since:
5.7
See Also:
HttpClientResponse
  • Constructor Details

  • Method Details

    • spanKind

      public final Span.Kind spanKind()
      Specified by:
      spanKind in class Request
    • header

      public abstract void header​(String name, String value)
      Sets a request header with the indicated name. null values are unsupported.

      This is only used when injecting a trace context as internally implemented by {link HttpClientHandler}. Calls during sampling or parsing are invalid and may be ignored by instrumentation.

      Since:
      5.7
      See Also:
      SETTER