Interface ClientRequestHeaders

All Superinterfaces:
Headers, Iterable<Header>, ServerRequestHeaders, WritableHeaders<ClientRequestHeaders>

public interface ClientRequestHeaders extends ServerRequestHeaders, WritableHeaders<ClientRequestHeaders>
Mutable headers of a client request.
  • Method Details

    • create

      static ClientRequestHeaders create(WritableHeaders<?> delegate)
      Create client request headers from writable headers.
      Parameters:
      delegate - headers
      Returns:
      client request headers
    • create

      static ClientRequestHeaders create(Headers headers)
      Create client request headers from headers.
      Parameters:
      headers - headers
      Returns:
      client request headers
    • accept

      default ClientRequestHeaders accept(MediaType... accepted)
      Accepted media types. Supports quality factor and wildcards.
      Parameters:
      accepted - media types to accept
      Returns:
      updated headers