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 Summary
Nested classes/interfaces inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
HttpHeader.ParsingResult, HttpHeader.ParsingResult$
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.pekko.http.scaladsl.model.HttpHeader
fastFind, is, isNot, lowercaseName, name, parse, unapply, unsafeToString, value
Methods inherited from class org.apache.pekko.http.javadsl.model.HttpHeader
parse, renderInRequests, renderInResponses
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pekko.http.impl.util.Renderable
render
Methods inherited from interface org.apache.pekko.http.impl.util.ToStringRenderable
toString
-
Constructor Details
-
Trailer
public Trailer()
-
-
Method Details
-
getTrailers
- Returns:
- an iterable collection of field names that are expected to be present in the trailer
-
create
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
-