接口的使用
cn.taketoday.http.server.reactive.ServerHttpRequest.Builder
程序包
说明
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.-
cn.taketoday.http.server.reactive中ServerHttpRequest.Builder的使用
修饰符和类型方法说明DefaultServerHttpRequestBuilder.contextPath(String contextPath) ServerHttpRequest.Builder.contextPath(String contextPath) Set the contextPath to use.Set or override the specified header values under the given name.DefaultServerHttpRequestBuilder.headers(Consumer<HttpHeaders> headersConsumer) ServerHttpRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate request headers.DefaultServerHttpRequestBuilder.method(HttpMethod httpMethod) ServerHttpRequest.Builder.method(HttpMethod httpMethod) Set the HTTP method to return.default ServerHttpRequest.BuilderServerHttpRequest.mutate()Return a builder to mutate properties of this request by wrapping it withServerHttpRequestDecoratorand returning either mutated values or delegating back to this instance.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.DefaultServerHttpRequestBuilder.remoteAddress(InetSocketAddress remoteAddress) ServerHttpRequest.Builder.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.修饰符和类型方法说明private voidForwardedHeaderTransformer.removeForwardedHeaders(ServerHttpRequest.Builder builder)