Class ReadOnlyHttpHeaders

  • All Implemented Interfaces:

    public final class ReadOnlyHttpHeaders
    extends HttpHeaders
    A variant of HttpHeaders which only supports read-only methods.

    Any array passed to this class may be used directly in the underlying data structures of this class. If these arrays may be modified it is the caller's responsibility to supply this class with a copy of the array.

    This may be a good alternative to DefaultHttpHeaders if your have a fixed set of headers which will not change.