Class Trailer
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpHeader
org.apache.pekko.http.scaladsl.model.HttpHeader
org.apache.pekko.http.javadsl.model.headers.Trailer
- All Implemented Interfaces:
- Renderable,- ToStringRenderable
- Direct Known Subclasses:
- Trailer
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
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.HttpHeaderHttpHeader.ParsingResult, HttpHeader.ParsingResult$
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.pekko.http.scaladsl.model.HttpHeaderfastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, valueMethods inherited from class org.apache.pekko.http.javadsl.model.HttpHeaderparse, renderInRequests, renderInResponsesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.http.impl.util.RenderablerenderMethods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderabletoString
- 
Constructor Details- 
Trailerpublic Trailer()
 
- 
- 
Method Details- 
getTrailers- Returns:
- an iterable collection of field names that are expected to be present in the trailer
 
- 
createCreates 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
 
 
-