Class Server

All Implemented Interfaces:
HttpHeader

public class Server extends HttpStringHeader
Represents an HTTP Server header.

A name for the server.

See Also:
Since:
9.2.1
  • Field Details

  • Constructor Details

    • Server

      public Server(String value)
      Constructor with an eager value.
      Parameters:
      value - The header value. May be null.
    • Server

      public Server(Supplier<String> valueSupplier)
      Constructor with a lazy value supplier.
      Parameters:
      valueSupplier - Supplier for the header value. Must not be null.
  • Method Details

    • of

      public static Server of(String value)
      Static factory method with an eager value.
      Parameters:
      value - The header value. May be null.
      Returns:
      A new instance. Never null.
    • of

      public static Server of(Supplier<String> valueSupplier)
      Static factory method with a lazy value supplier.
      Parameters:
      valueSupplier - Supplier for the header value. Must not be null.
      Returns:
      A new instance. Never null.