类 DefaultServerHttpRequestBuilder
java.lang.Object
cn.taketoday.http.server.reactive.DefaultServerHttpRequestBuilder
- 所有已实现的接口:
ServerHttpRequest.Builder
Package-private default implementation of
ServerHttpRequest.Builder.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Sebastien Deleuze, Brian Clozel
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>private Stringprivate final HttpHeadersprivate Stringprivate final ServerHttpRequestprivate InetSocketAddressprivate SslInfoprivate URIprivate String -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明build()Build aServerHttpRequestdecorator with the mutated properties.contextPath(String contextPath) Set the contextPath to use.private URISet or override the specified header values under the given name.headers(Consumer<HttpHeaders> headersConsumer) Manipulate request headers.method(HttpMethod httpMethod) Set the HTTP method to return.Set the path to use instead of the"rawPath"of the URI of the request with the following conditions: Ifuriis also set, the path given here overrides the path of the given URI.remoteAddress(InetSocketAddress remoteAddress) Set the address of the remote client.Set the SSL session information.Set the URI to use with the following conditions: Ifpathis also set, it overrides the path of the URI provided here.
-
字段详细资料
-
uri
-
headers
-
httpMethodValue
-
uriPath
-
contextPath
-
sslInfo
-
remoteAddress
-
body
private final reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body -
originalRequest
-
-
构造器详细资料
-
DefaultServerHttpRequestBuilder
-
-
方法详细资料
-
method
从接口复制的说明:ServerHttpRequest.BuilderSet the HTTP method to return.- 指定者:
method在接口中ServerHttpRequest.Builder
-
uri
从接口复制的说明:ServerHttpRequest.BuilderSet the URI to use with the following conditions:- If
pathis also set, it overrides the path of the URI provided here. - If
contextPathis also set, or already present, it must match the start of the path of the URI provided here.
- 指定者:
uri在接口中ServerHttpRequest.Builder
- If
-
path
从接口复制的说明:ServerHttpRequest.BuilderSet the path to use instead of the"rawPath"of the URI of the request with the following conditions:- If
uriis also set, the path given here overrides the path of the given URI. - If
contextPathis also set, or already present, it must match the start of the path given here. - The given value must begin with a slash.
- 指定者:
path在接口中ServerHttpRequest.Builder
- If
-
contextPath
从接口复制的说明:ServerHttpRequest.BuilderSet the contextPath to use.The given value must be a valid
contextPathand it must match the start of the path of the URI of the request. That means changing the contextPath, implies also changing the path viaServerHttpRequest.Builder.path(String).- 指定者:
contextPath在接口中ServerHttpRequest.Builder
-
header
从接口复制的说明:ServerHttpRequest.BuilderSet or override the specified header values under the given name.If you need to add header values, remove headers, etc., use
ServerHttpRequest.Builder.headers(Consumer)for greater control.- 指定者:
header在接口中ServerHttpRequest.Builder- 参数:
headerName- the header nameheaderValues- the header values- 另请参阅:
-
headers
从接口复制的说明:ServerHttpRequest.BuilderManipulate request headers. The providedHttpHeaderscontains current request headers, so that theConsumercan overwrite or remove existing values, or use any otherHttpHeadersmethods. -
sslInfo
从接口复制的说明:ServerHttpRequest.BuilderSet the SSL session information. This may be useful in environments where TLS termination is done at the router, but SSL information is made available in some other way such as through a header.- 指定者:
sslInfo在接口中ServerHttpRequest.Builder
-
remoteAddress
从接口复制的说明:ServerHttpRequest.BuilderSet the address of the remote client.- 指定者:
remoteAddress在接口中ServerHttpRequest.Builder
-
build
从接口复制的说明:ServerHttpRequest.BuilderBuild aServerHttpRequestdecorator with the mutated properties.- 指定者:
build在接口中ServerHttpRequest.Builder
-
getUriToUse
-