Interface HeaderWriter.Headers

Enclosing interface:
HeaderWriter

public static interface HeaderWriter.Headers
The headers of the response being written.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether the handler, or an earlier writer, set this header.
    int
    The status of the response.
    boolean
    Whether the request arrived over TLS this server terminated.
    void
    set(String name, String value)
    Sets the header, replacing what was there.
    void
    setIfAbsent(String name, String value)
    Sets the header unless the handler already did, which is how a default leaves a deliberate choice alone.
  • Method Details

    • contains

      boolean contains(String name)
      Whether the handler, or an earlier writer, set this header.
    • set

      void set(String name, String value)
      Sets the header, replacing what was there.
    • setIfAbsent

      void setIfAbsent(String name, String value)
      Sets the header unless the handler already did, which is how a default leaves a deliberate choice alone.
    • isSecure

      boolean isSecure()
      Whether the request arrived over TLS this server terminated.
    • getStatus

      int getStatus()
      The status of the response.