All Implemented Interfaces:
Renderable, ToStringRenderable
Direct Known Subclasses:
Trailer

public abstract class Trailer extends HttpHeader
The `Trailer` header is used before a message body to indicate which fields will be present in the trailers when using chunked transfer encoding. See RFC 7230, Section 4.4
Since:
1.3.0
  • Constructor Details

    • Trailer

      public Trailer()
  • Method Details

    • getTrailers

      public abstract Iterable<String> getTrailers()
      Returns:
      an iterable collection of field names that are expected to be present in the trailer
    • create

      public static Trailer create(String... values)
      Creates a new `Trailer` header with the specified trailer field names.
      Parameters:
      values - the names of the fields that are expected to be present in the trailer
      Returns:
      a new `Trailer` header instance