JavaScript is disabled on your browser.
java.lang.Object
org.springframework.web.reactive.function.server.support.ServerRequestWrapper.HeadersWrapper
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
java.util.List<MediaType >
accept ()
Get the list of acceptable media types, as specified by the Accept
header.
java.util.List<java.nio.charset.Charset>
acceptCharset ()
Get the list of acceptable charsets, as specified by the
Accept-Charset
header.
java.util.List<java.util.Locale.LanguageRange>
acceptLanguage ()
Get the list of acceptable languages, as specified by the
Accept-Language
header.
HttpHeaders
asHttpHeaders ()
java.util.OptionalLong
contentLength ()
Get the length of the body in bytes, as specified by the
Content-Length
header.
java.util.Optional<MediaType >
contentType ()
Get the media type of the body, as specified by the
Content-Type
header.
java.util.List<java.lang.String>
header (java.lang.String headerName)
Get the header value(s), if any, for the header of the given name.
java.net.InetSocketAddress
host ()
Get the value of the required Host
header.
java.util.List<HttpRange >
range ()
Get the value of the Range
header.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail
acceptCharset
public java.util.List<java.nio.charset.Charset> acceptCharset()
Get the list of acceptable charsets, as specified by the
Accept-Charset
header.
Specified by:
acceptCharset
in interface ServerRequest.Headers
acceptLanguage
public java.util.List<java.util.Locale.LanguageRange> acceptLanguage()
Get the list of acceptable languages, as specified by the
Accept-Language
header.
Specified by:
acceptLanguage
in interface ServerRequest.Headers
contentLength
public java.util.OptionalLong contentLength()
Get the length of the body in bytes, as specified by the
Content-Length
header.
Specified by:
contentLength
in interface ServerRequest.Headers