类的使用
cn.taketoday.http.HttpHeaders
使用HttpHeaders的程序包
程序包
说明
Contains a basic abstraction over client/server-side HTTP.
Contains an abstraction over client-side HTTP.
Abstractions for reactive HTTP client support including
ClientHttpRequest and
ClientHttpResponse as well as a
ClientHttpConnector.This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Multipart support.
Provides an HttpMessageConverter abstraction to convert between Java objects and HTTP input/output messages.
Provides HttpMessageConverter implementations for handling JSON.
Provides HttpMessageConverter implementations for handling XML.
Contains an abstraction over server-side HTTP.
Abstractions for reactive HTTP server support including a
ServerHttpRequest and
ServerHttpResponse along with an
HttpHandler for processing.Request context parameter resolvers
Core package of the client-side web support.
Web client config.
Classes supporting the
cn.taketoday.web.client package.Web Handler
Provides the types that make up Infra functional web framework.
Method handler
Multipart API
Multipart supports
Provides a reactive
WebClient
that builds on top of the
cn.taketoday.http.client.reactive reactive HTTP adapter layer.Classes supporting the
cn.taketoday.web.reactive.function.client package.Support classes for serving static resources.
Support for creating a client proxy for an HTTP service annotated with
HttpExchange methods.Miscellaneous web utility classes, such as HTML escaping,
Log4j initialization, and cookie handling.
-
cn.taketoday.http中HttpHeaders的使用
修饰符和类型类说明classDefault HttpHeaders(专用程序包) classHttpHeadersobject that can only be read, not written to.声明为HttpHeaders的cn.taketoday.http中的字段修饰符和类型字段说明private final HttpHeadersHttpEntity.headersprivate final HttpHeadersRequestEntity.DefaultBodyBuilder.headersprivate final HttpHeadersSimpleHttpOutputMessage.headers返回HttpHeaders的cn.taketoday.http中的方法修饰符和类型方法说明static HttpHeaderscopy targetMap’s all entries to a new HttpHeadersstatic HttpHeadersHttpHeaders.empty()HttpEntity.getHeaders()Returns the headers of this entity.HttpMessage.getHeaders()Return the headers of this message.SimpleHttpOutputMessage.getHeaders()static HttpHeadersHttpHeaders.readOnlyHttpHeaders(HttpHeaders headers) Apply a read-onlyHttpHeaderswrapper around the given headers, if necessary.static HttpHeadersHttpHeaders.readOnlyHttpHeaders(cn.taketoday.util.MultiValueMap<String, String> headers) Apply a read-onlyHttpHeaderswrapper around the given headers, if necessary.static HttpHeadersHttpHeaders.writableHttpHeaders(HttpHeaders headers) Remove any read-only wrapper that may have been previously applied around the given headers viareadOnlyHttpHeaders(HttpHeaders).参数类型为HttpHeaders的cn.taketoday.http中的方法修饰符和类型方法说明(专用程序包) static <T> StringRequestEntity.format(HttpMethod httpMethod, String url, T body, HttpHeaders headers) RequestEntity.DefaultBodyBuilder.headers(HttpHeaders headers) RequestEntity.HeadersBuilder.headers(HttpHeaders headers) Copy the given headers into the entity's headers map.ResponseEntity.DefaultBuilder.headers(HttpHeaders headers) ResponseEntity.HeadersBuilder.headers(HttpHeaders headers) Copy the given headers into the entity's headers map.static HttpHeadersHttpHeaders.readOnlyHttpHeaders(HttpHeaders headers) Apply a read-onlyHttpHeaderswrapper around the given headers, if necessary.static HttpHeadersHttpHeaders.writableHttpHeaders(HttpHeaders headers) Remove any read-only wrapper that may have been previously applied around the given headers viareadOnlyHttpHeaders(HttpHeaders).类型变量类型为HttpHeaders的cn.taketoday.http中的方法参数修饰符和类型方法说明RequestEntity.DefaultBodyBuilder.headers(Consumer<HttpHeaders> headersConsumer) RequestEntity.HeadersBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this entity's headers with the given consumer.ResponseEntity.DefaultBuilder.headers(Consumer<HttpHeaders> headersConsumer) ResponseEntity.HeadersBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this entity's headers with the given consumer.参数类型为HttpHeaders的cn.taketoday.http中的构造器 -
cn.taketoday.http.client中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersAbstractClientHttpRequest.headersprivate final HttpHeadersHttpComponentsClientHttpRequest.BodyEntity.headersprivate HttpHeadersHttpComponentsClientHttpResponse.headersprivate final HttpHeadersJdkClientHttpResponse.headersprivate final HttpHeadersJettyClientHttpResponse.headersprotected HttpHeadersMultipartBodyBuilder.DefaultPartBuilder.headersprivate final HttpHeadersReactorNettyClientResponse.headersprivate HttpHeadersSimpleClientHttpResponse.headersprivate HttpHeadersAbstractClientHttpRequest.readOnlyHeaders修饰符和类型方法说明private static HttpHeadersJdkClientHttpResponse.adaptHeaders(HttpResponse<?> response) final HttpHeadersAbstractClientHttpRequest.getHeaders()ClientHttpResponseDecorator.getHeaders()HttpComponentsClientHttpResponse.getHeaders()JdkClientHttpResponse.getHeaders()JettyClientHttpResponse.getHeaders()ReactorNettyClientResponse.getHeaders()SimpleClientHttpResponse.getHeaders()private HttpHeadersMultipartBodyBuilder.DefaultPartBuilder.initHeadersIfNecessary()参数类型为HttpHeaders的cn.taketoday.http.client中的方法修饰符和类型方法说明(专用程序包) static voidHttpComponentsClientHttpRequest.addHeaders(org.apache.hc.core5.http.ClassicHttpRequest httpRequest, HttpHeaders headers) Add the given headers to the given HTTP request.(专用程序包) static voidSimpleClientHttpRequest.addHeaders(HttpURLConnection connection, HttpHeaders headers) Add the given headers to the given HTTP connection.private HttpRequest.BodyPublisherJdkClientHttpRequest.bodyPublisher(HttpHeaders headers, StreamingHttpOutputMessage.Body body) private HttpRequestJdkClientHttpRequest.buildRequest(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers, byte[] bufferedOutput) Abstract template method that writes the given headers and content to the HTTP request.protected abstract ClientHttpResponseAbstractClientHttpRequest.executeInternal(HttpHeaders headers) Abstract template method that writes the given headers and content to the HTTP request.protected final ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) Abstract template method that writes the given headers and content to the HTTP request.protected ClientHttpResponseBufferingClientHttpRequestWrapper.executeInternal(HttpHeaders headers, byte[] bufferedOutput) protected ClientHttpResponseHttpComponentsClientHttpRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected ClientHttpResponseInterceptingClientHttpRequest.executeInternal(HttpHeaders headers, byte[] bufferedOutput) protected ClientHttpResponseJdkClientHttpRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected ClientHttpResponseJettyClientHttpRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected ClientHttpResponseReactorNettyClientRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected ClientHttpResponseSimpleClientHttpRequest.executeInternal(HttpHeaders headers, StreamingHttpOutputMessage.Body body) protected OutputStreamAbstractBufferingClientHttpRequest.getBodyInternal(HttpHeaders headers) protected abstract OutputStreamAbstractClientHttpRequest.getBodyInternal(HttpHeaders headers) Abstract template method that returns the body.protected final OutputStreamAbstractStreamingClientHttpRequest.getBodyInternal(HttpHeaders headers) private org.reactivestreams.Publisher<Void>ReactorNettyClientRequest.send(HttpHeaders headers, StreamingHttpOutputMessage.Body body, reactor.netty.http.client.HttpClientRequest reactorRequest, reactor.netty.NettyOutbound nettyOutbound) 类型变量类型为HttpHeaders的cn.taketoday.http.client中的方法参数修饰符和类型方法说明MultipartBodyBuilder.DefaultPartBuilder.headers(Consumer<HttpHeaders> headersConsumer) MultipartBodyBuilder.PartBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate the part headers through the given consumer.参数类型为HttpHeaders的cn.taketoday.http.client中的构造器限定符构造器说明BodyEntity(HttpHeaders headers, StreamingHttpOutputMessage.Body body) DefaultPartBuilder(String name, HttpHeaders headers, Object body) PublisherPartBuilder(String name, HttpHeaders headers, P body, cn.taketoday.core.ParameterizedTypeReference<S> typeRef) PublisherPartBuilder(String name, HttpHeaders headers, P body, Class<S> elementClass) -
cn.taketoday.http.client.reactive中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersAbstractClientHttpRequest.headersprivate final HttpHeadersHttpComponentsClientHttpResponse.headersprivate final HttpHeadersJdkClientHttpResponse.headersprivate final HttpHeadersJettyClientHttpResponse.headersprivate final HttpHeadersReactorClientHttpResponse.headersprivate final HttpHeadersReactorNetty2ClientHttpResponse.headersprivate HttpHeadersAbstractClientHttpRequest.readOnlyHeaders修饰符和类型方法说明private static HttpHeadersJdkClientHttpResponse.adaptHeaders(HttpResponse<Flow.Publisher<List<ByteBuffer>>> response) AbstractClientHttpRequest.getHeaders()ClientHttpRequestDecorator.getHeaders()ClientHttpResponseDecorator.getHeaders()HttpComponentsClientHttpResponse.getHeaders()JdkClientHttpResponse.getHeaders()JettyClientHttpResponse.getHeaders()ReactorClientHttpResponse.getHeaders()ReactorNetty2ClientHttpResponse.getHeaders()protected HttpHeadersAbstractClientHttpRequest.initReadOnlyHeaders()Initialize the read-only headers after the request is committed.protected HttpHeadersHttpComponentsClientHttpRequest.initReadOnlyHeaders()protected HttpHeadersJettyClientHttpRequest.initReadOnlyHeaders()protected HttpHeadersReactorClientHttpRequest.initReadOnlyHeaders()protected HttpHeadersReactorNetty2ClientHttpRequest.initReadOnlyHeaders()参数类型为HttpHeaders的cn.taketoday.http.client.reactive中的构造器 -
cn.taketoday.http.client.support中HttpHeaders的使用
-
cn.taketoday.http.codec.multipart中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersDefaultPartEvents.AbstractPartEvent.headersprivate final HttpHeadersDefaultParts.AbstractPart.headersprivate final HttpHeadersMultipartHttpMessageWriter.MultipartHttpOutputMessage.headersprivate final HttpHeadersMultipartParser.HeadersToken.headersprivate final HttpHeadersPartGenerator.CreateFileState.headersprivate final HttpHeadersPartGenerator.FormFieldState.headersprivate final HttpHeadersPartGenerator.IdleFileState.headersprivate final HttpHeadersPartGenerator.InMemoryState.headersprivate final HttpHeadersPartGenerator.WritingFileState.headers修饰符和类型方法说明MultipartHttpMessageWriter.MultipartHttpOutputMessage.getHeaders()MultipartParser.BodyToken.getHeaders()MultipartParser.HeadersToken.getHeaders()abstract HttpHeadersMultipartParser.Token.getHeaders()DefaultPartEvents.AbstractPartEvent.headers()DefaultParts.AbstractPart.headers()Part.headers()Return the headers associated with the part.PartEvent.headers()Return the headers of the part that this event belongs to.private HttpHeadersMultipartParser.HeadersState.parseHeaders()Parses the list of buffers into aHttpHeadersinstance.修饰符和类型方法说明static CharsetMultipartUtils.charset(HttpHeaders headers) Return the character set of the given headers, as defined in thegetContentType()header.static PartEventDefaultPartEvents.create(HttpHeaders headers) static PartEventDefaultPartEvents.create(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBuffer dataBuffer, boolean isLast) private org.reactivestreams.Publisher<? extends PartEvent>PartEventHttpMessageReader.createEvents(HttpHeaders headers, reactor.core.publisher.Flux<MultipartParser.BodyToken> bodyTokens) (专用程序包) voidMultipartParser.emitHeaders(HttpHeaders headers) private reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer>PartEventHttpMessageWriter.encodePartData(byte[] boundary, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory, HttpHeaders headers, reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body) static FilePartEventDefaultPartEvents.file(HttpHeaders headers) static FilePartEventDefaultPartEvents.file(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBuffer dataBuffer, boolean isLast) static FormPartEventDefaultPartEvents.form(HttpHeaders headers) static FormPartEventDefaultPartEvents.form(HttpHeaders headers, String value) static FormFieldPartDefaultParts.formFieldPart(HttpHeaders headers, String value) Create a newFormFieldPartwith the given parameters.protected reactor.core.publisher.Mono<cn.taketoday.core.io.buffer.DataBuffer>MultipartWriterSupport.generatePartHeaders(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) static booleanMultipartUtils.isFormField(HttpHeaders headers) private voidPartGenerator.newPart(PartGenerator.State currentState, HttpHeaders headers) static PartDefaultParts.part(HttpHeaders headers, Path file, reactor.core.scheduler.Scheduler scheduler) static PartDefaultParts.part(HttpHeaders headers, reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> dataBuffers) private static PartDefaultParts.partInternal(HttpHeaders headers, DefaultParts.Content content) 类型变量类型为HttpHeaders的cn.taketoday.http.codec.multipart中的方法参数修饰符和类型方法说明static reactor.core.publisher.Flux<FilePartEvent>FilePartEvent.create(String name, cn.taketoday.core.io.Resource resource, Consumer<HttpHeaders> headersConsumer) Creates a stream ofFilePartEventobjects based on the given name and resource.static reactor.core.publisher.Flux<FilePartEvent>FilePartEvent.create(String partName, String filename, MediaType contentType, reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> contents, Consumer<HttpHeaders> headersConsumer) Creates a stream ofFilePartEventobjects based on the given name, FilePartEvent.filename(), content-type, and contents.static reactor.core.publisher.Flux<FilePartEvent>FilePartEvent.create(String name, Path path, Consumer<HttpHeaders> headersConsumer) Creates a stream ofFilePartEventobjects based on the given name and file path.static reactor.core.publisher.Mono<FormPartEvent>FormPartEvent.create(String name, String value, Consumer<HttpHeaders> headersConsumer) 参数类型为HttpHeaders的cn.taketoday.http.codec.multipart中的构造器限定符构造器说明protectedAbstractPart(HttpHeaders headers) protectedAbstractPartEvent(HttpHeaders headers) CreateFileState(HttpHeaders headers, Collection<cn.taketoday.core.io.buffer.DataBuffer> content, long byteCount) DefaultFilePart(HttpHeaders headers, DefaultParts.Content content) DefaultFilePartEvent(HttpHeaders headers) DefaultFilePartEvent(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBuffer content, boolean last) DefaultFormFieldPart(HttpHeaders headers, String value) DefaultFormFieldPartEvent(HttpHeaders headers) DefaultFormFieldPartEvent(HttpHeaders headers, String value) DefaultPart(HttpHeaders headers, DefaultParts.Content content) DefaultPartEvent(HttpHeaders headers) DefaultPartEvent(HttpHeaders headers, cn.taketoday.core.io.buffer.DataBuffer content, boolean last) FormFieldState(HttpHeaders headers) HeadersToken(HttpHeaders headers) InMemoryState(HttpHeaders headers) -
cn.taketoday.http.converter中HttpHeaders的使用
参数类型为HttpHeaders的cn.taketoday.http.converter中的方法修饰符和类型方法说明voidAbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders headers, T t, MediaType contentType) Add default headers to the output message.voidStringHttpMessageConverter.addDefaultHeaders(HttpHeaders headers, String s, MediaType type) -
cn.taketoday.http.converter.json中HttpHeaders的使用
修饰符和类型方法说明private static CharsetAbstractJsonHttpMessageConverter.getCharset(HttpHeaders headers) 参数类型为HttpHeaders的cn.taketoday.http.converter.json中的构造器限定符构造器说明MappingJacksonInputMessage(InputStream body, HttpHeaders headers) MappingJacksonInputMessage(InputStream body, HttpHeaders headers, Class<?> deserializationView) -
cn.taketoday.http.converter.xml中HttpHeaders的使用
修饰符和类型方法说明protected abstract TAbstractXmlHttpMessageConverter.readFromSource(Class<? extends T> clazz, HttpHeaders headers, Source source) Abstract template method called fromAbstractHttpMessageConverter.read(Class, HttpInputMessage).protected TJaxb2CollectionHttpMessageConverter.readFromSource(Class<? extends T> clazz, HttpHeaders headers, Source source) protected ObjectJaxb2RootElementHttpMessageConverter.readFromSource(Class<?> clazz, HttpHeaders headers, Source source) protected ObjectMarshallingHttpMessageConverter.readFromSource(Class<?> clazz, HttpHeaders headers, Source source) protected abstract voidAbstractXmlHttpMessageConverter.writeToResult(T t, HttpHeaders headers, Result result) Abstract template method called fromAbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage).protected voidJaxb2CollectionHttpMessageConverter.writeToResult(T t, HttpHeaders headers, Result result) protected voidJaxb2RootElementHttpMessageConverter.writeToResult(Object o, HttpHeaders headers, Result result) protected voidMarshallingHttpMessageConverter.writeToResult(Object o, HttpHeaders headers, Result result) -
cn.taketoday.http.server中HttpHeaders的使用
修饰符和类型类说明private classExtends HttpHeaders with the ability to look up headers already present in the underlying HttpServletResponse.修饰符和类型字段说明private HttpHeadersServletServerHttpRequest.headersprivate final HttpHeadersServletServerHttpResponse.headersprivate HttpHeadersServletServerHttpResponse.readOnlyHeaders修饰符和类型方法说明DelegatingServerHttpResponse.getHeaders()ServletServerHttpRequest.getHeaders()ServletServerHttpResponse.getHeaders() -
cn.taketoday.http.server.reactive中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersAbstractServerHttpRequest.headersprivate final HttpHeadersAbstractServerHttpResponse.headersprivate final HttpHeadersDefaultServerHttpRequestBuilder.headersprivate HttpHeadersAbstractServerHttpResponse.readOnlyHeaders修饰符和类型方法说明private static HttpHeadersUndertowServerHttpResponse.createHeaders(io.undertow.server.HttpServerExchange exchange) private static HttpHeadersTomcatHttpHandlerAdapter.TomcatServerHttpResponse.createTomcatHttpHeaders(HttpServletResponse response) AbstractServerHttpRequest.getHeaders()AbstractServerHttpResponse.getHeaders()ServerHttpRequestDecorator.getHeaders()ServerHttpResponseDecorator.getHeaders()修饰符和类型方法说明private static URIForwardedHeaderTransformer.adaptFromForwardedHeaders(URI uri, HttpHeaders headers) 类型变量类型为HttpHeaders的cn.taketoday.http.server.reactive中的方法参数修饰符和类型方法说明DefaultServerHttpRequestBuilder.headers(Consumer<HttpHeaders> headersConsumer) ServerHttpRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate request headers.参数类型为HttpHeaders的cn.taketoday.http.server.reactive中的构造器限定符构造器说明AbstractListenerServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory, HttpHeaders headers) AbstractServerHttpRequest(URI uri, String contextPath, HttpHeaders headers) Constructor with the URI and headers for the request.AbstractServerHttpResponse(cn.taketoday.core.io.buffer.DataBufferFactory dataBufferFactory, HttpHeaders headers) MutatedServerHttpRequest(URI uri, String contextPath, String methodValue, SslInfo sslInfo, InetSocketAddress remoteAddress, HttpHeaders headers, reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body, ServerHttpRequest originalRequest) ServletServerHttpResponse(HttpHeaders headers, HttpServletResponse response, AsyncContext asyncContext, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory, int bufferSize, ServletServerHttpRequest request) -
cn.taketoday.web中HttpHeaders的使用
声明为HttpHeaders的cn.taketoday.web中的字段修饰符和类型字段说明private final HttpHeadersErrorResponseException.headersprotected HttpHeadersRequestContext.requestHeadersprotected HttpHeadersRequestContext.responseHeaders返回HttpHeaders的cn.taketoday.web中的方法修饰符和类型方法说明DecoratingRequestContext.createRequestHeaders()protected abstract HttpHeadersRequestContext.createRequestHeaders()template method for create request http-headersDecoratingRequestContext.createResponseHeaders()protected HttpHeadersRequestContext.createResponseHeaders()create a new response http-headerDecoratingRequestContext.getHeaders()default HttpHeadersErrorResponse.getHeaders()Return headers to use for the response.ErrorResponseException.getHeaders()HttpMediaTypeNotAcceptableException.getHeaders()HttpMediaTypeNotSupportedException.getHeaders()HttpRequestMethodNotSupportedException.getHeaders()MethodNotAllowedException.getHeaders()Return HttpHeaders with an "Allow" header that documents the allowed HTTP methods for this URL, if available, or an empty instance otherwise.NotAcceptableStatusException.getHeaders()Return HttpHeaders with an "Accept" header that documents the supported media types, if available, or an empty instance otherwise.RequestContext.getHeaders()RequestContext.RequestContextHttpOutputMessage.getHeaders()ResponseStatusException.getHeaders()Return headers to add to the error response, e.g.UnsupportedMediaTypeStatusException.getHeaders()Return HttpHeaders with an "Accept" header that documents the supported media types, if available, or an empty instance otherwise.DecoratingRequestContext.requestHeaders()RequestContext.requestHeaders()Get request HTTP headersDecoratingRequestContext.responseHeaders()RequestContext.responseHeaders()Get request HTTP headers参数类型为HttpHeaders的cn.taketoday.web中的方法修饰符和类型方法说明voidDecoratingRequestContext.mergeToResponse(HttpHeaders headers) voidRequestContext.mergeToResponse(HttpHeaders headers) merge headers to response http-headers -
cn.taketoday.web.bind.resolver中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersAbstractMessageConverterMethodArgumentResolver.EmptyBodyCheckingHttpInputMessage.headersprivate final HttpHeadersRequestPartServerHttpRequest.multipartHeaders修饰符和类型方法说明AbstractMessageConverterMethodArgumentResolver.EmptyBodyCheckingHttpInputMessage.getHeaders()RequestPartServerHttpRequest.getHeaders()修饰符和类型方法说明HttpEntityMethodProcessor.getVaryRequestHeadersToAdd(HttpHeaders responseHeaders, HttpHeaders entityHeaders) -
cn.taketoday.web.client中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersDefaultRestClient.defaultHeadersprivate HttpHeadersDefaultRestClientBuilder.defaultHeadersprivate HttpHeadersDefaultRestClient.DefaultRequestBodyUriSpec.headersprivate final HttpHeadersRestClientResponseException.responseHeadersprivate final HttpHeadersUnknownContentTypeException.responseHeaders类型参数类型为HttpHeaders的cn.taketoday.web.client中的字段修饰符和类型方法说明private HttpHeadersDefaultRestClientBuilder.copyDefaultHeaders()RestTemplate.HeadersExtractor.extractData(ClientHttpResponse response) private HttpHeadersDefaultRestClient.DefaultRequestBodyUriSpec.getHeaders()RestClientResponseException.getResponseHeaders()Return the HTTP response headers.UnknownContentTypeException.getResponseHeaders()Return the HTTP response headers.RestOperations.headForHeaders(String url, Object... uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders(String url, Map<String, ?> uriVariables) Retrieve all headers of the resource specified by the URI template.RestOperations.headForHeaders(URI url) Retrieve all headers of the resource specified by the URL.RestTemplate.headForHeaders(String url, Object... uriVariables) RestTemplate.headForHeaders(String url, Map<String, ?> uriVariables) RestTemplate.headForHeaders(URI url) private HttpHeadersDefaultRestClient.DefaultRequestBodyUriSpec.initHeaders()private HttpHeadersDefaultRestClientBuilder.initHeaders()返回变量类型为HttpHeaders的类型的cn.taketoday.web.client中的方法修饰符和类型方法说明protected ResponseExtractor<HttpHeaders>RestTemplate.headersExtractor()Return a response extractor forHttpHeaders.参数类型为HttpHeaders的cn.taketoday.web.client中的方法修饰符和类型方法说明private static voidRestTemplate.copyHttpHeaders(HttpHeaders httpHeaders, HttpHeaders requestHeaders) static HttpClientErrorExceptionHttpClientErrorException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) CreateHttpClientErrorExceptionor an HTTP status specific sub-class.static HttpClientErrorExceptionHttpClientErrorException.create(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofHttpClientErrorException.create(HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.static HttpServerErrorExceptionHttpServerErrorException.create(HttpStatus statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Create anHttpServerErrorExceptionor an HTTP status specific sub-class.static HttpServerErrorExceptionHttpServerErrorException.create(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Variant ofHttpServerErrorException.create(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)with an optional prepared message.类型变量类型为HttpHeaders的cn.taketoday.web.client中的方法参数修饰符和类型方法说明DefaultRestClientBuilder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) RestClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) Provide a consumer to access to every default header declared so far, with the possibility to add, replace, or remove.DefaultRestClient.DefaultRequestBodyUriSpec.headers(Consumer<HttpHeaders> headersConsumer) RestClient.RequestHeadersSpec.headers(Consumer<HttpHeaders> headersConsumer) Provides access to every header declared so far with the possibility to add, replace, or remove values.参数类型为HttpHeaders的cn.taketoday.web.client中的构造器限定符构造器说明privateBadGateway(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateBadGateway(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateBadRequest(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateBadRequest(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateConflict(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateConflict(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) (专用程序包)DefaultRestClient(ClientHttpRequestFactory clientRequestFactory, List<ClientHttpRequestInterceptor> interceptors, List<ClientHttpRequestInitializer> initializers, UriBuilderFactory uriBuilderFactory, HttpHeaders defaultHeaders, List<StatusHandler> statusHandlers, List<HttpMessageConverter<?>> messageConverters, DefaultRestClientBuilder builder) privateForbidden(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateForbidden(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateGatewayTimeout(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateGatewayTimeout(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateGone(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateGone(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) HttpClientErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content.HttpClientErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset responseCharset) Constructor with a status code and status text, headers, and content, and an prepared message.HttpServerErrorException(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, and content.HttpServerErrorException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with a status code and status text, headers, content, and an prepared message.protectedHttpStatusCodeException(HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.protectedHttpStatusCodeException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct instance with anHttpStatusCode, status text, content, and a response charset.privateInternalServerError(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateInternalServerError(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateMethodNotAllowed(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateMethodNotAllowed(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotAcceptable(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotAcceptable(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotFound(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotFound(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotImplemented(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateNotImplemented(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) RestClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Construct a new instance of with the given response data.RestClientResponseException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Construct a new instance of with the given response data.privateServiceUnavailable(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateServiceUnavailable(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateTooManyRequests(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateTooManyRequests(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateUnauthorized(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateUnauthorized(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) UnknownContentTypeException(Type targetType, MediaType contentType, int statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody) Construct a new instance of with the given response data.UnknownContentTypeException(Type targetType, MediaType contentType, HttpStatusCode statusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody) Construct a new instance of with the given response data.UnknownHttpStatusCodeException(int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content.UnknownHttpStatusCodeException(String message, int rawStatusCode, String statusText, HttpHeaders responseHeaders, byte[] responseBody, Charset responseCharset) Construct a new instance ofHttpStatusCodeExceptionbased on a status code, status text, and response body content.privateUnprocessableEntity(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateUnprocessableEntity(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) privateUnsupportedMediaType(String statusText, HttpHeaders headers, byte[] body, Charset charset) privateUnsupportedMediaType(String message, String statusText, HttpHeaders headers, byte[] body, Charset charset) -
cn.taketoday.web.client.config中HttpHeaders的使用
-
cn.taketoday.web.client.support中HttpHeaders的使用
修饰符和类型方法说明RestClientAdapter.exchangeForHeaders(HttpRequestValues values) RestTemplateAdapter.exchangeForHeaders(HttpRequestValues values) -
cn.taketoday.web.handler中HttpHeaders的使用
参数类型为HttpHeaders的cn.taketoday.web.handler中的方法修饰符和类型方法说明protected ResponseEntity<Object>ResponseEntityExceptionHandler.createResponseEntity(Object body, HttpHeaders headers, HttpStatusCode statusCode, RequestContext request) Create theResponseEntityto use from the given body, headers, and statusCode.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofAsyncRequestTimeoutException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleBindException(cn.taketoday.validation.BindException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofBindException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleConversionNotSupported(cn.taketoday.beans.ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofConversionNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling of anyErrorResponseException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleExceptionInternal(Exception ex, Object body, HttpHeaders headers, HttpStatusCode statusCode, RequestContext request) Internal handler method that all others in this class delegate to, for common handling, and for the creation of aResponseEntity.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHandlerNotFoundException(HandlerNotFoundException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHandlerNotFoundException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMediaTypeNotAcceptableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMediaTypeNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMessageNotReadableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpMessageNotWritableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofHttpRequestMethodNotSupportedException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMethodArgumentNotValidException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingPathVariableException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingRequestParameter(MissingRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingRequestParameterException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleMissingRequestPart(MissingRequestPartException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofMissingRequestPartException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleRequestBindingException(RequestBindingException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofRequestBindingException.protected ResponseEntity<Object>ResponseEntityExceptionHandler.handleTypeMismatch(cn.taketoday.beans.TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, RequestContext request) Customize the handling ofTypeMismatchException.参数类型为HttpHeaders的cn.taketoday.web.handler中的构造器限定符构造器说明HandlerNotFoundException(String httpMethod, String requestURI, HttpHeaders headers) Constructor for HandlerNotFoundException. -
cn.taketoday.web.handler.function中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersAbstractServerResponse.headersprivate final HttpHeadersDefaultEntityResponseBuilder.headersprivate final HttpHeadersDefaultRenderingResponseBuilder.headersprivate final HttpHeadersDefaultServerRequest.CheckNotModifiedResponse.headersprivate final HttpHeadersDefaultServerRequestBuilder.BuiltServerRequest.headersprivate final HttpHeadersDefaultServerRequestBuilder.headersprivate final HttpHeadersDefaultServerResponseBuilder.headersprivate final HttpHeadersModelAndViewRenderingResponseBuilder.headersprivate final HttpHeadersDefaultServerRequest.DefaultRequestHeaders.httpHeaders修饰符和类型方法说明DefaultServerRequest.DefaultRequestHeaders.asHttpHeaders()ServerRequest.Headers.asHttpHeaders()Get the headers as an instance ofHttpHeaders.private static HttpHeadersSseServerResponse.createHeaders()protected HttpHeadersDefaultServerRequest.CheckNotModifiedResponse.createRequestHeaders()DefaultServerRequestBuilder.BuiltServerRequest.BuiltInputMessage.getHeaders()final HttpHeadersAbstractServerResponse.headers()DefaultAsyncServerResponse.headers()ServerResponse.headers()Return the headers of this response.DefaultServerRequest.CheckNotModifiedResponse.requestHeaders()DefaultServerRequest.CheckNotModifiedResponse.responseHeaders()类型变量类型为HttpHeaders的cn.taketoday.web.handler.function中的方法参数修饰符和类型方法说明DefaultEntityResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) DefaultRenderingResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) DefaultServerRequestBuilder.headers(Consumer<HttpHeaders> headersConsumer) DefaultServerResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) EntityResponse.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.ModelAndViewRenderingResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) RenderingResponse.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.RenderingResponse.ViewBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.ServerRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this request's headers with the given consumer.ServerResponse.HeadersBuilder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.参数类型为HttpHeaders的cn.taketoday.web.handler.function中的构造器限定符构造器说明protectedAbstractServerResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies) BuiltServerRequest(RequestContext requestContext, HttpMethod method, URI uri, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, Map<String, Object> attributes, cn.taketoday.util.MultiValueMap<String, String> params, InetSocketAddress remoteAddress, byte[] body, List<HttpMessageConverter<?>> messageConverters) CompletionStageEntityResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, CompletionStage<T> entity, Type entityType) DefaultEntityResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, T entity, Type entityType) DefaultRenderingResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, String name, Map<String, Object> model) DefaultRequestHeaders(HttpHeaders httpHeaders) ModelAndViewRenderingResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, ModelAndView modelAndView) PublisherEntityResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, org.reactivestreams.Publisher<T> entity, Type entityType) WriteFunctionResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, HttpCookie> cookies, ServerResponse.HeadersBuilder.WriteFunction writeFunction) -
cn.taketoday.web.handler.method中HttpHeaders的使用
-
cn.taketoday.web.multipart中HttpHeaders的使用
修饰符和类型方法说明Multipart.getHeaders()Return the headers for the specified part of the multipart request.MultipartRequest.getMultipartHeaders(String paramOrFileName) Return the headers for the specified part of the multipart request. -
cn.taketoday.web.multipart.support中HttpHeaders的使用
修饰符和类型方法说明protected HttpHeadersAbstractMultipart.createHttpHeaders()protected HttpHeadersServletPartFormData.createHttpHeaders()AbstractMultipart.getHeaders()ServletMultipartRequest.getMultipartHeaders(String paramOrFileName) -
cn.taketoday.web.reactive.function.client中HttpHeaders的使用
修饰符和类型字段说明private final HttpHeadersDefaultWebClient.defaultHeadersprivate HttpHeadersDefaultWebClientBuilder.defaultHeadersprivate final HttpHeadersDefaultClientRequestBuilder.BodyInserterRequest.headersprivate final HttpHeadersDefaultClientRequestBuilder.headersprivate final HttpHeadersDefaultClientResponseBuilder.BuiltClientHttpResponse.headersheaders记录组件的字段。private HttpHeadersDefaultClientResponseBuilder.headersprivate HttpHeadersDefaultWebClient.DefaultRequestBodyUriSpec.headersprivate final HttpHeadersWebClientRequestException.headersprivate final HttpHeadersWebClientResponseException.headersprivate final HttpHeadersDefaultClientResponse.DefaultHeaders.httpHeaders修饰符和类型方法说明ClientResponse.Headers.asHttpHeaders()Return the headers as anHttpHeadersinstance.DefaultClientResponse.DefaultHeaders.asHttpHeaders()private HttpHeadersDefaultWebClientBuilder.copyDefaultHeaders()DefaultClientResponseBuilder.BuiltClientHttpResponse.getHeaders()private HttpHeadersDefaultClientResponseBuilder.getHeaders()private HttpHeadersDefaultWebClient.DefaultRequestBodyUriSpec.getHeaders()WebClientRequestException.getHeaders()Return the HTTP request headers.WebClientResponseException.getHeaders()Return the HTTP response headers.ClientRequest.headers()Return the headers of this request.DefaultClientRequestBuilder.BodyInserterRequest.headers()DefaultClientResponseBuilder.BuiltClientHttpResponse.headers()返回headers记录组件的值。private HttpHeadersDefaultWebClientBuilder.initHeaders()修饰符和类型方法说明static WebClientResponseExceptionWebClientResponseException.create(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) CreateWebClientResponseExceptionor an HTTP status specific subclass.static WebClientResponseExceptionWebClientResponseException.create(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) CreateWebClientResponseExceptionor an HTTP status specific subclass.static WebClientResponseExceptionWebClientResponseException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) CreateWebClientResponseExceptionor an HTTP status specific subclass.private StringExchangeFunctions.DefaultExchangeFunction.formatHeaders(HttpHeaders headers) private voidDefaultWebClient.DefaultRequestBodyUriSpec.initHeaders(HttpHeaders out) 类型变量类型为HttpHeaders的cn.taketoday.web.reactive.function.client中的方法参数修饰符和类型方法说明DefaultWebClientBuilder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) WebClient.Builder.defaultHeaders(Consumer<HttpHeaders> headersConsumer) Provides access to everyWebClient.Builder.defaultHeader(String, String...)declared so far with the possibility to add, replace, or remove.ClientRequest.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this request's headers with the given consumer.ClientResponse.Builder.headers(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.DefaultClientRequestBuilder.headers(Consumer<HttpHeaders> headersConsumer) DefaultClientResponseBuilder.headers(Consumer<HttpHeaders> headersConsumer) DefaultWebClient.DefaultRequestBodyUriSpec.headers(Consumer<HttpHeaders> headersConsumer) WebClient.RequestHeadersSpec.headers(Consumer<HttpHeaders> headersConsumer) Provides access to every header declared so far with the possibility to add, replace, or remove values.限定符构造器说明(专用程序包)BadGateway(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)BadRequest(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) BodyInserterRequest(HttpMethod method, URI url, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, BodyInserter<?, ? super ClientHttpRequest> body, Map<String, Object> attributes, Consumer<ClientHttpRequest> httpRequestConsumer) privateBuiltClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, ResponseCookie> cookies, reactor.core.publisher.Flux<cn.taketoday.core.io.buffer.DataBuffer> body, ClientResponse originalResponse) 创建BuiltClientHttpResponse记录的实例。(专用程序包)Conflict(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)DefaultWebClient(ExchangeFunction exchangeFunction, UriBuilderFactory uriBuilderFactory, HttpHeaders defaultHeaders, cn.taketoday.util.MultiValueMap<String, String> defaultCookies, Consumer<WebClient.RequestHeadersSpec<?>> defaultRequest, Map<Predicate<HttpStatusCode>, Function<ClientResponse, reactor.core.publisher.Mono<? extends Throwable>>> statusHandlerMap, DefaultWebClientBuilder builder) (专用程序包)Forbidden(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)GatewayTimeout(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)Gone(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)InternalServerError(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)MethodNotAllowed(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)NotAcceptable(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)NotFound(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)NotImplemented(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)ServiceUnavailable(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)TooManyRequests(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)Unauthorized(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, Charset responseCharset, HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.(专用程序包)UnprocessableEntity(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) (专用程序包)UnsupportedMediaType(String statusText, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) WebClientRequestException(Throwable ex, HttpMethod method, URI uri, HttpHeaders headers) Constructor for throwable.WebClientResponseException(int statusCode, String statusText, HttpHeaders headers, byte[] body, Charset charset) Constructor with response data only, and a default message.WebClientResponseException(int status, String reasonPhrase, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) Constructor with response data only, and a default message.WebClientResponseException(HttpStatusCode statusCode, String reasonPhrase, HttpHeaders headers, byte[] body, Charset charset, HttpRequest request) Constructor with response data only, and a default message.WebClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset) Constructor with a prepared message.WebClientResponseException(String message, int statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset, HttpRequest request) Constructor with a prepared message.WebClientResponseException(String message, HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] responseBody, Charset charset, HttpRequest request) Constructor with a prepared message. -
cn.taketoday.web.reactive.function.client.support中HttpHeaders的使用
返回变量类型为HttpHeaders的类型的cn.taketoday.web.reactive.function.client.support中的方法修饰符和类型方法说明reactor.core.publisher.Mono<HttpHeaders>WebClientAdapter.exchangeForHeadersMono(HttpRequestValues requestValues) -
cn.taketoday.web.resource中HttpHeaders的使用
修饰符和类型方法说明EncodedResourceResolver.EncodedResource.getResponseHeaders()HttpResource.getResponseHeaders()The HTTP headers to be contributed to the HTTP response that serves the current resource.VersionResourceResolver.FileNameVersionedResource.getResponseHeaders() -
cn.taketoday.web.service.invoker中HttpHeaders的使用
修饰符和类型字段说明private HttpHeadersHttpRequestValues.Builder.headersprivate final HttpHeadersHttpRequestValues.headers修饰符和类型方法说明AbstractReactorHttpExchangeAdapter.exchangeForHeaders(HttpRequestValues requestValues) HttpExchangeAdapter.exchangeForHeaders(HttpRequestValues requestValues) Perform the given request, release the response content, and return the response headers.HttpRequestValues.getHeaders()Return the headers for the request, if any.private HttpHeadersHttpRequestValues.Builder.initHeaders()返回变量类型为HttpHeaders的类型的cn.taketoday.web.service.invoker中的方法修饰符和类型方法说明reactor.core.publisher.Mono<HttpHeaders>ReactorHttpExchangeAdapter.exchangeForHeadersMono(HttpRequestValues requestValues) Perform the given request, release the response content, and return the response headers.修饰符和类型方法说明protected HttpRequestValuesHttpRequestValues.Builder.createRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue) protected ReactiveHttpRequestValuesReactiveHttpRequestValues.Builder.createRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVars, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue) 参数类型为HttpHeaders的cn.taketoday.web.service.invoker中的构造器限定符构造器说明protectedHttpRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue) privateReactiveHttpRequestValues(HttpMethod httpMethod, URI uri, String uriTemplate, Map<String, String> uriVariables, HttpHeaders headers, cn.taketoday.util.MultiValueMap<String, String> cookies, Map<String, Object> attributes, Object bodyValue, org.reactivestreams.Publisher<?> body, cn.taketoday.core.ParameterizedTypeReference<?> elementType) -
cn.taketoday.web.servlet中HttpHeaders的使用
-
cn.taketoday.web.util中HttpHeaders的使用
参数类型为HttpHeaders的cn.taketoday.web.util中的方法修饰符和类型方法说明static UriComponentsBuilderForwardedHeaderUtils.adaptFromForwardedHeaders(URI uri, HttpHeaders headers) private static booleanForwardedHeaderUtils.isForwardedSslOn(HttpHeaders headers) static InetSocketAddressForwardedHeaderUtils.parseForwardedFor(URI uri, HttpHeaders headers, InetSocketAddress remoteAddress) Parse the first "Forwarded: for=..." or "X-Forwarded-For" header value to anInetSocketAddressrepresenting the address of the client.