Interface MutableHeaders

All Superinterfaces:
ConversionServiceProvider, ConvertibleMultiValues<String>, ConvertibleValues<List<String>>, Headers, Iterable<Map.Entry<String,List<String>>>, ValueResolver<CharSequence>
All Known Subinterfaces:
MessageHeaders, MutableHttpHeaders
All Known Implementing Classes:
NettyHttpHeaders, SimpleHttpHeaders

public interface MutableHeaders extends Headers
Common interface for all mutable header types.
Since:
1.0
Author:
graemerocher
  • Method Details

    • add

      Add a header for the given name and value.
      Parameters:
      header - The head name
      value - The value
      Returns:
      This headers object
    • remove

      MutableHeaders remove(CharSequence header)
      Removes a header.
      Parameters:
      header - The header to remove
      Returns:
      These headers
    • set

      default MutableHeaders set(CharSequence header, CharSequence value)
      Sets an HTTP header overriding any existing value.
      Parameters:
      header - The header
      value - The value
      Returns:
      This headers
      Since:
      1.3.3