接口 ServerHttpRequest
- 所有超级接口:
HttpMessage,HttpRequest,ReactiveHttpInputMessage
- 所有已知实现类:
AbstractServerHttpRequest,DefaultServerHttpRequestBuilder.MutatedServerHttpRequest,ReactorNetty2ServerHttpRequest,ReactorServerHttpRequest,ServerHttpRequestDecorator,ServletServerHttpRequest,TomcatHttpHandlerAdapter.TomcatServerHttpRequest,UndertowServerHttpRequest
Represents a reactive server-side HTTP request.
- 从以下版本开始:
- 4.0
- 作者:
- Arjen Poutsma, Rossen Stoyanchev, Sam Brannen
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明cn.taketoday.util.MultiValueMap<String,HttpCookie> Return a read-only map of cookies sent by the client.getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages.default InetSocketAddressReturn the local address the request was accepted on, if available.getPath()Returns a structured representation of the full request path up to but not including thequery.Return a read-only map with parsed and decoded query parameter values.default InetSocketAddressReturn the remote address where this request is connected to, if available.default SslInfoReturn the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.default ServerHttpRequest.Buildermutate()Return a builder to mutate properties of this request by wrapping it withServerHttpRequestDecoratorand returning either mutated values or delegating back to this instance.从接口继承的方法 cn.taketoday.http.HttpMessage
getHeaders从接口继承的方法 cn.taketoday.http.HttpRequest
getMethod, getMethodValue, getURI从接口继承的方法 cn.taketoday.http.ReactiveHttpInputMessage
getBody
-
方法详细资料
-
getId
String getId()Return an id that represents the underlying connection, if available, or the request for the purpose of correlating log messages. -
getPath
RequestPath getPath()Returns a structured representation of the full request path up to but not including thequery.The returned path is sub-divided into a
RequestPath.contextPath()portion and the remainingpathWithinApplicationportion. The latter can be passed into methods ofPathPatternfor path matching purposes. -
getQueryParams
Return a read-only map with parsed and decoded query parameter values. -
getCookies
cn.taketoday.util.MultiValueMap<String,HttpCookie> getCookies()Return a read-only map of cookies sent by the client. -
getLocalAddress
Return the local address the request was accepted on, if available. -
getRemoteAddress
Return the remote address where this request is connected to, if available. -
getSslInfo
Return the SSL session information if the request has been transmitted over a secure protocol including SSL certificates, if available.- 返回:
- the session information, or
nullif none available
-
mutate
Return a builder to mutate properties of this request by wrapping it withServerHttpRequestDecoratorand returning either mutated values or delegating back to this instance.
-