Interface ClientResponseTrailers
HTTP Trailer headers of a client response.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic ClientResponseTrailerscreate()Create new empty trailers.static ClientResponseTrailersCreate new trailers from headers future.Methods inherited from interface Headers
acceptedTypes, all, contains, contains, containsToken, contentLength, contentType, find, first, get, isAccepted, size, stream, toMap, value, valuesModifier and TypeMethodDescriptionReturns a list of acceptedTypes (HeaderNames.ACCEPTheader) content discoveryTypes in quality factor order.all(HeaderName name, Supplier<List<String>> defaultSupplier) Get all values of a header.booleanWhether these headers contain a header with the provided name and value.booleancontains(HeaderName name) Whether these headers contain a header with the provided name.default booleancontainsToken(Header value) Whether these headers contain all tokenized values from the provided header.default OptionalLongContent length if defined.default Optional<HttpMediaType> Content type (if defined).find(HeaderName headerName) Find the first header.first(HeaderName headerName) Returns a first header value.get(HeaderName name) Get a header value.default booleanisAccepted(MediaType... mediaTypes) Whether this media type is accepted by these headers.intsize()Number of headers in these headers.stream()A sequential stream with these headers as the source.toMap()Deprecated.use other methods to handle headers, preferably using pull approachvalue(HeaderName headerName) Returns a header value as a singleStringpotentially concatenated using comma character fromHeaders.all(HeaderName, java.util.function.Supplier)header fields.values(HeaderName headerName) Returns an unmodifiableListof all comma separated header value parts - Such segmentation is NOT valid for all header semantics, however it is very common.Methods inherited from interface Iterable
forEach, iterator, spliterator
-
Method Details
-
create
Create new trailers from headers future.- Parameters:
headers- trailer headers- Returns:
- new client trailers from headers future
-
create
Create new empty trailers.- Returns:
- new empty client trailers
-