Enum Class的使用
cn.taketoday.http.HttpMethod
使用HttpMethod的程序包
程序包
说明
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.
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.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy.Common MVC logic for matching incoming requests based on conditions.
Provides the types that make up Infra functional web framework.
Method handler
Provides a reactive
WebClient
that builds on top of the
cn.taketoday.http.client.reactive reactive HTTP adapter layer.Support for creating a client proxy for an HTTP service annotated with
HttpExchange methods.-
cn.taketoday.http中HttpMethod的使用
声明为HttpMethod的cn.taketoday.http中的字段修饰符和类型字段说明private final HttpMethodRequestEntity.DefaultBodyBuilder.methodprivate final HttpMethodRequestEntity.method类型参数类型为HttpMethod的cn.taketoday.http中的字段返回HttpMethod的cn.taketoday.http中的方法修饰符和类型方法说明HttpHeaders.getAccessControlRequestMethod()Return the value of theAccess-Control-Request-Methodrequest header.HttpRequest.getMethod()Return the HTTP method of the request.RequestEntity.getMethod()Return the HTTP method of the request.static HttpMethodResolve the given method value to anHttpMethod.static HttpMethodReturns the enum constant of this class with the specified name.static HttpMethod[]HttpMethod.values()Returns an array containing the constants of this enum class, in the order they are declared.返回变量类型为HttpMethod的类型的cn.taketoday.http中的方法修饰符和类型方法说明HttpHeaders.getAccessControlAllowMethods()Return the value of theAccess-Control-Allow-Methodsresponse header.HttpHeaders.getAllow()Return the set of allowedHTTP methods, as specified by theAllowheader.参数类型为HttpMethod的cn.taketoday.http中的方法修饰符和类型方法说明ResponseEntity.DefaultBuilder.allow(HttpMethod... allowedMethods) ResponseEntity.HeadersBuilder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.(专用程序包) static <T> StringRequestEntity.format(HttpMethod httpMethod, String url, T body, HttpHeaders headers) static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, Object... uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, String uriTemplate, Map<String, ?> uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, URI url) Create a builder with the given method and url.voidHttpHeaders.setAccessControlRequestMethod(HttpMethod requestMethod) Set the (new) value of theAccess-Control-Request-Methodrequest header.voidHttpHeaders.setAllow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.类型变量类型为HttpMethod的cn.taketoday.http中的方法参数修饰符和类型方法说明voidHttpHeaders.setAllow(Collection<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.参数类型为HttpMethod的cn.taketoday.http中的构造器限定符构造器说明(专用程序包)DefaultBodyBuilder(HttpMethod method, String uriTemplate, Object... uriVars) (专用程序包)DefaultBodyBuilder(HttpMethod method, String uriTemplate, Map<String, ?> uriVars) (专用程序包)DefaultBodyBuilder(HttpMethod method, URI url) RequestEntity(HttpMethod method, URI url) Constructor with method and URL but without body nor headers.RequestEntity(cn.taketoday.util.MultiValueMap<String, String> headers, HttpMethod method, URI url) Constructor with method, URL and headers but without body.RequestEntity(T body, HttpMethod method, URI url) Constructor with method, URL and body but without headers.RequestEntity(T body, HttpMethod method, URI url, Type type) Constructor with method, URL, body and type but without headers.RequestEntity(T body, cn.taketoday.util.MultiValueMap<String, String> headers, HttpMethod method, URI url) Constructor with method, URL, headers and body.RequestEntity(T body, cn.taketoday.util.MultiValueMap<String, String> headers, HttpMethod method, URI url, Type type) Constructor with method, URL, headers, body and type.(专用程序包)UriTemplateRequestEntity(T body, cn.taketoday.util.MultiValueMap<String, String> headers, HttpMethod method, Type type, String uriTemplate, Object[] uriVarsArray, Map<String, ?> uriVarsMap) -
cn.taketoday.http.client中HttpMethod的使用
修饰符和类型字段说明private final HttpMethodHttpComponentsClientHttpRequest.methodprivate final HttpMethodInterceptingClientHttpRequest.methodprivate final HttpMethodJdkClientHttpRequest.methodprivate final HttpMethodReactorNettyClientRequest.methodprivate final HttpMethodSimpleClientHttpRequest.method类型参数类型为HttpMethod的cn.taketoday.http.client中的字段修饰符和类型字段说明private BiFunction<HttpMethod,URI, org.apache.hc.core5.http.protocol.HttpContext> HttpComponentsClientHttpRequestFactory.httpContextFactory修饰符和类型方法说明BufferingClientHttpRequestWrapper.getMethod()HttpComponentsClientHttpRequest.getMethod()InterceptingClientHttpRequest.getMethod()JdkClientHttpRequest.getMethod()JettyClientHttpRequest.getMethod()ReactorNettyClientRequest.getMethod()SimpleClientHttpRequest.getMethod()参数类型为HttpMethod的cn.taketoday.http.client中的方法修饰符和类型方法说明protected org.apache.hc.core5.http.protocol.HttpContextHttpComponentsClientHttpRequestFactory.createHttpContext(HttpMethod httpMethod, URI uri) Template methods that creates aHttpContextfor the given HTTP method and URI.protected org.apache.hc.core5.http.ClassicHttpRequestHttpComponentsClientHttpRequestFactory.createHttpUriRequest(HttpMethod httpMethod, URI uri) Create a Commons HttpMethodBase object for the given HTTP method and URI specification.protected ClientHttpRequestBufferingClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) ClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) Create a newClientHttpRequestfor the specified URI and HTTP method.final ClientHttpRequestClientHttpRequestFactoryWrapper.createRequest(URI uri, HttpMethod httpMethod) This implementation simply callsClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)with the wrapped request factory provided to the constructor.protected ClientHttpRequestClientHttpRequestFactoryWrapper.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) Create a newClientHttpRequestfor the specified URI and HTTP method by using the passed-on request factory.HttpComponentsClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) protected ClientHttpRequestInterceptingClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) JdkClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) JettyClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) ReactorNettyClientRequestFactory.createRequest(URI uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest(URI uri, HttpMethod httpMethod) protected voidSimpleClientHttpRequestFactory.prepareConnection(HttpURLConnection connection, HttpMethod httpMethod) Template method for preparing the givenHttpURLConnection.protected booleanBufferingClientHttpRequestFactory.shouldBuffer(URI uri, HttpMethod httpMethod) Indicates whether the request/response exchange for the given URI and method should be buffered in memory.类型变量类型为HttpMethod的cn.taketoday.http.client中的方法参数修饰符和类型方法说明voidHttpComponentsClientHttpRequestFactory.setHttpContextFactory(BiFunction<HttpMethod, URI, org.apache.hc.core5.http.protocol.HttpContext> httpContextFactory) Configure a factory to pre-create theHttpContextfor each request.参数类型为HttpMethod的cn.taketoday.http.client中的构造器限定符构造器说明(专用程序包)InterceptingClientHttpRequest(ClientHttpRequestFactory requestFactory, List<ClientHttpRequestInterceptor> interceptors, URI uri, HttpMethod method) JdkClientHttpRequest(HttpClient httpClient, URI uri, HttpMethod method, Executor executor, Duration readTimeout) ReactorNettyClientRequest(reactor.netty.http.client.HttpClient httpClient, URI uri, HttpMethod method, Duration exchangeTimeout, Duration readTimeout) -
cn.taketoday.http.client.reactive中HttpMethod的使用
修饰符和类型字段说明private final HttpMethodReactorClientHttpRequest.httpMethodprivate final HttpMethodReactorNetty2ClientHttpRequest.httpMethodprivate final HttpMethodJdkClientHttpRequest.method类型参数类型为HttpMethod的cn.taketoday.http.client.reactive中的字段修饰符和类型字段说明private final BiFunction<HttpMethod,URI, ? extends HttpClientContext> HttpComponentsClientHttpConnector.contextProvider修饰符和类型方法说明ClientHttpRequest.getMethod()Return the HTTP method of the request.ClientHttpRequestDecorator.getMethod()HttpComponentsClientHttpRequest.getMethod()JdkClientHttpRequest.getMethod()JettyClientHttpRequest.getMethod()ReactorClientHttpRequest.getMethod()ReactorNetty2ClientHttpRequest.getMethod()修饰符和类型方法说明private ReactorClientHttpRequestReactorClientHttpConnector.adaptRequest(HttpMethod method, URI uri, reactor.netty.http.client.HttpClientRequest request, reactor.netty.NettyOutbound nettyOutbound) private ReactorNetty2ClientHttpRequestReactorNetty2ClientHttpConnector.adaptRequest(HttpMethod method, URI uri, reactor.netty5.http.client.HttpClientRequest request, reactor.netty5.NettyOutbound nettyOutbound) reactor.core.publisher.Mono<ClientHttpResponse>ClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) Connect to the origin server using the givenHttpMethodandURIand apply the givenrequestCallbackwhen the HTTP request of the underlying API can be initialized and written to.reactor.core.publisher.Mono<ClientHttpResponse>HttpComponentsClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>JdkClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>JettyClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>ReactorClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>ReactorNetty2ClientHttpConnector.connect(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) private booleanReactorClientHttpResponse.mayHaveBody(HttpMethod method) private booleanReactorNetty2ClientHttpResponse.mayHaveBody(HttpMethod method) (专用程序包) voidReactorClientHttpResponse.releaseAfterCancel(HttpMethod method) Called byReactorClientHttpConnectorwhen a cancellation is detected but the content has not been subscribed to.(专用程序包) voidReactorNetty2ClientHttpResponse.releaseAfterCancel(HttpMethod method) Called byReactorNetty2ClientHttpConnectorwhen a cancellation is detected but the content has not been subscribed to.参数类型为HttpMethod的cn.taketoday.http.client.reactive中的构造器限定符构造器说明HttpComponentsClientHttpRequest(HttpMethod method, URI uri, HttpClientContext context, cn.taketoday.core.io.buffer.DataBufferFactory dataBufferFactory) JdkClientHttpRequest(HttpMethod httpMethod, URI uri, cn.taketoday.core.io.buffer.DataBufferFactory bufferFactory) ReactorClientHttpRequest(HttpMethod method, URI uri, reactor.netty.http.client.HttpClientRequest request, reactor.netty.NettyOutbound outbound) ReactorNetty2ClientHttpRequest(HttpMethod method, URI uri, reactor.netty5.http.client.HttpClientRequest request, reactor.netty5.NettyOutbound outbound) 类型变量类型为HttpMethod的cn.taketoday.http.client.reactive中的构造器参数限定符构造器说明HttpComponentsClientHttpConnector(CloseableHttpAsyncClient client, BiFunction<HttpMethod, URI, ? extends HttpClientContext> contextProvider) Constructor with a pre-configuredCloseableHttpAsyncClientinstance and aHttpClientContextsupplier lambda which is called before each request and passed to the client. -
cn.taketoday.http.client.support中HttpMethod的使用
修饰符和类型方法说明protected ClientHttpRequestHttpAccessor.createRequest(URI url, HttpMethod method) Create a newClientHttpRequestvia this template'sClientHttpRequestFactory. -
cn.taketoday.http.server中HttpMethod的使用
-
cn.taketoday.http.server.reactive中HttpMethod的使用
修饰符和类型方法说明DefaultServerHttpRequestBuilder.method(HttpMethod httpMethod) ServerHttpRequest.Builder.method(HttpMethod httpMethod) Set the HTTP method to return.参数类型为HttpMethod的cn.taketoday.http.server.reactive中的构造器限定符构造器说明AbstractServerHttpRequest(HttpMethod method, URI uri, String contextPath, cn.taketoday.util.MultiValueMap<String, String> headers) Constructor with the method, URI and headers for the request. -
cn.taketoday.web中HttpMethod的使用
声明为HttpMethod的cn.taketoday.web中的字段修饰符和类型字段说明private final HttpMethodHttpMediaTypeNotSupportedException.httpMethodprotected HttpMethodRequestContext.httpMethodprivate final HttpMethodUnsupportedMediaTypeStatusException.method类型参数类型为HttpMethod的cn.taketoday.web中的字段返回HttpMethod的cn.taketoday.web中的方法返回变量类型为HttpMethod的类型的cn.taketoday.web中的方法修饰符和类型方法说明HttpRequestMethodNotSupportedException.getSupportedHttpMethods()Return the actually supported HTTP methods asHttpMethodinstances, ornullif not known.MethodNotAllowedException.getSupportedMethods()Return the list of supported HTTP methods.参数类型为HttpMethod的cn.taketoday.web中的构造器限定符构造器说明HttpMediaTypeNotSupportedException(MediaType contentType, List<MediaType> mediaTypes, HttpMethod httpMethod) Create a new HttpMediaTypeNotSupportedException.HttpMediaTypeNotSupportedException(MediaType contentType, List<MediaType> supportedMediaTypes, HttpMethod httpMethod, String message) Create a new HttpMediaTypeNotSupportedException.MethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods) UnsupportedMediaTypeStatusException(MediaType contentType, List<MediaType> supportedTypes, cn.taketoday.core.ResolvableType bodyType, HttpMethod method) Constructor for when trying to encode from or decode to a specific Java type.UnsupportedMediaTypeStatusException(MediaType contentType, List<MediaType> supportedTypes, HttpMethod method) Constructor that provides the HTTP method.类型变量类型为HttpMethod的cn.taketoday.web中的构造器参数限定符构造器说明MethodNotAllowedException(HttpMethod method, Collection<HttpMethod> supportedMethods) MethodNotAllowedException(String method, Collection<HttpMethod> supportedMethods) -
cn.taketoday.web.bind.resolver中HttpMethod的使用
类型参数类型为HttpMethod的cn.taketoday.web.bind.resolver中的字段修饰符和类型字段说明private static final EnumSet<HttpMethod>AbstractMessageConverterMethodArgumentResolver.SUPPORTED_METHODS参数类型为HttpMethod的cn.taketoday.web.bind.resolver中的方法修饰符和类型方法说明private booleanHttpEntityMethodProcessor.isResourceNotModified(RequestContext context, HttpMethod method) -
cn.taketoday.web.client中HttpMethod的使用
返回变量类型为HttpMethod的类型的cn.taketoday.web.client中的方法修饰符和类型方法说明RestOperations.optionsForAllow(String url, Object... uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow(String url, Map<String, ?> uriVariables) Return the value of the Allow header for the given URI.RestOperations.optionsForAllow(URI url) Return the value of the Allow header for the given URL.RestTemplate.optionsForAllow(String url, Object... uriVariables) RestTemplate.optionsForAllow(String url, Map<String, ?> uriVariables) RestTemplate.optionsForAllow(URI url) 参数类型为HttpMethod的cn.taketoday.web.client中的方法修饰符和类型方法说明private static ResourceAccessExceptionDefaultRestClient.DefaultRequestBodyUriSpec.createResourceAccessException(URI url, HttpMethod method, IOException ex) protected <T> TRestTemplate.doExecute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the given method on the provided URI.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestOperations.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) Execute the HTTP method to the given URI template, writing the given request entity to the request, and returns the response asResponseEntity.<T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Object... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(String url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, cn.taketoday.core.ParameterizedTypeReference<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) <T> TRestOperations.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestOperations.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestOperations.execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Object... uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(String url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, Map<String, ?> uriVariables) Execute the HTTP method to the given URI template, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.<T> TRestTemplate.execute(URI url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) Execute the HTTP method to the given URL, preparing the request with theRequestCallback, and reading the response with aResponseExtractor.default voidResponseErrorHandler.handleError(URI url, HttpMethod method, ClientHttpResponse response) Alternative toResponseErrorHandler.handleError(ClientHttpResponse)with extra information providing access to the request URL and HTTP method.protected voidRestTemplate.handleResponse(URI url, HttpMethod method, ClientHttpResponse response) Handle the given response, performing appropriate logging and invoking theResponseErrorHandlerif necessary.DefaultRestClient.method(HttpMethod method) RestClient.method(HttpMethod method) Start building a request for the givenHttpMethod.private RestClient.RequestBodyUriSpecDefaultRestClient.methodInternal(HttpMethod httpMethod) 参数类型为HttpMethod的cn.taketoday.web.client中的构造器 -
cn.taketoday.web.client.config中HttpMethod的使用
参数类型为HttpMethod的cn.taketoday.web.client.config中的方法修饰符和类型方法说明protected voidClientHttpRequestFactories.Simple.SimpleClientHttpsRequestFactory.prepareConnection(HttpURLConnection connection, HttpMethod httpMethod) -
cn.taketoday.web.cors中HttpMethod的使用
类型参数类型为HttpMethod的cn.taketoday.web.cors中的字段修饰符和类型字段说明private static final List<HttpMethod>CorsConfiguration.DEFAULT_METHODSprivate List<HttpMethod>CorsConfiguration.resolvedMethods修饰符和类型方法说明private HttpMethodDefaultCorsProcessor.getMethodToUse(RequestContext request, boolean isPreFlight) 返回变量类型为HttpMethod的类型的cn.taketoday.web.cors中的方法修饰符和类型方法说明CorsConfiguration.checkHttpMethod(HttpMethod method) Check the HTTP request method (or the method from theAccess-Control-Request-Methodheader on a pre-flight request) against the configured allowed methods.protected List<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod method) Check the HTTP method and determine the methods for the response of a pre-flight request.参数类型为HttpMethod的cn.taketoday.web.cors中的方法修饰符和类型方法说明voidCorsConfiguration.addAllowedMethod(HttpMethod method) Variant ofCorsConfiguration.setAllowedMethods(java.util.List<java.lang.String>)for adding one allowed method at a time.CorsConfiguration.checkHttpMethod(HttpMethod method) Check the HTTP request method (or the method from theAccess-Control-Request-Methodheader on a pre-flight request) against the configured allowed methods.protected List<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod method) Check the HTTP method and determine the methods for the response of a pre-flight request. -
cn.taketoday.web.handler.condition中HttpMethod的使用
类型参数类型为HttpMethod的cn.taketoday.web.handler.condition中的字段修饰符和类型字段说明private final Set<HttpMethod>RequestMethodsRequestCondition.methodsprivate static final EnumMap<HttpMethod,RequestMethodsRequestCondition> RequestMethodsRequestCondition.requestMethodConditionCachePer HTTP method cache to return ready instances from getMatchingCondition.返回变量类型为HttpMethod的类型的cn.taketoday.web.handler.condition中的方法修饰符和类型方法说明protected Collection<HttpMethod>RequestMethodsRequestCondition.getContent()RequestMethodsRequestCondition.getMethods()Returns allRequestMethodscontained in this condition.修饰符和类型方法说明private RequestMethodsRequestConditionRequestMethodsRequestCondition.matchRequestMethod(HttpMethod requestMethod) 参数类型为HttpMethod的cn.taketoday.web.handler.condition中的构造器限定符构造器说明RequestMethodsRequestCondition(HttpMethod... requestMethods) Create a new instance with the given request methods.类型变量类型为HttpMethod的cn.taketoday.web.handler.condition中的构造器参数限定符构造器说明privateRequestMethodsRequestCondition(Set<HttpMethod> methods) Private constructor for internal use when combining conditions. -
cn.taketoday.web.handler.function中HttpMethod的使用
修饰符和类型字段说明private final HttpMethodDefaultServerRequestBuilder.BuiltServerRequest.methodprivate HttpMethodDefaultServerRequestBuilder.method类型参数类型为HttpMethod的cn.taketoday.web.handler.function中的字段修饰符和类型字段说明private final Set<HttpMethod>RequestPredicates.HttpMethodPredicate.httpMethodsprivate static final Set<HttpMethod>AbstractServerResponse.SAFE_METHODSprivate static final Set<HttpMethod>ResourceHandlerFunction.SUPPORTED_METHODS修饰符和类型方法说明DefaultServerRequest.CheckNotModifiedResponse.getMethod()DefaultServerRequest.method()DefaultServerRequestBuilder.BuiltServerRequest.method()private static HttpMethodRequestPredicates.HttpMethodPredicate.method(ServerRequest request) RequestPredicates.SubPathServerRequestWrapper.method()ServerRequest.method()Get the HTTP method.修饰符和类型方法说明DefaultEntityResponseBuilder.allow(HttpMethod... allowedMethods) DefaultServerResponseBuilder.allow(HttpMethod... allowedMethods) EntityResponse.Builder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.DefaultServerRequestBuilder.method(HttpMethod method) static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) Return aRequestPredicatethat matches if the request's HTTP method is equal to the given method.ServerRequest.Builder.method(HttpMethod method) Set the method of the request.static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) Return aRequestPredicatethat matches if the request's HTTP method is equal to one the of the given methods.类型变量类型为HttpMethod的cn.taketoday.web.handler.function中的方法参数修饰符和类型方法说明DefaultEntityResponseBuilder.allow(Set<HttpMethod> allowedMethods) DefaultServerResponseBuilder.allow(Set<HttpMethod> allowedMethods) EntityResponse.Builder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.ServerResponse.HeadersBuilder.allow(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods, as specified by theAllowheader.voidRequestPredicates.Visitor.method(Set<HttpMethod> methods) Receive notification of an HTTP method predicate.voidToStringVisitor.method(Set<HttpMethod> methods) 参数类型为HttpMethod的cn.taketoday.web.handler.function中的构造器限定符构造器说明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) HttpMethodPredicate(HttpMethod httpMethod) HttpMethodPredicate(HttpMethod... httpMethods) -
cn.taketoday.web.handler.method中HttpMethod的使用
修饰符和类型字段说明private static final HttpMethod[]RequestMappingHandlerMapping.EMPTY_REQUEST_METHOD_ARRAYprivate HttpMethod[]RequestMappingInfo.DefaultBuilder.methods返回变量类型为HttpMethod的类型的cn.taketoday.web.handler.method中的方法修饰符和类型方法说明private static Set<HttpMethod>RequestMappingInfoHandlerMapping.HttpOptionsHandler.initAllowedHttpMethods(Set<String> declaredMethods) 修饰符和类型方法说明RequestMappingInfo.Builder.methods(HttpMethod... methods) Set the request method conditions.RequestMappingInfo.DefaultBuilder.methods(HttpMethod... methods) RequestMappingInfo.MutateBuilder.methods(HttpMethod... methods) -
cn.taketoday.web.reactive.function.client中HttpMethod的使用
修饰符和类型字段说明private final HttpMethodDefaultWebClient.DefaultRequestBodyUriSpec.httpMethodprivate final HttpMethodDefaultClientRequestBuilder.BodyInserterRequest.methodprivate HttpMethodDefaultClientRequestBuilder.methodprivate final HttpMethodWebClientRequestException.method修饰符和类型方法说明WebClientRequestException.getMethod()Return the HTTP request method.ClientRequest.method()Return the HTTP method.DefaultClientRequestBuilder.BodyInserterRequest.method()修饰符和类型方法说明static ClientRequest.BuilderClientRequest.create(HttpMethod method, URI url) Create a request builder with the given HTTP method and url.ClientRequest.Builder.method(HttpMethod method) Set the method of the request.DefaultClientRequestBuilder.method(HttpMethod method) DefaultWebClient.method(HttpMethod httpMethod) WebClient.method(HttpMethod method) Start building a request for the givenHttpMethod.private WebClient.RequestBodyUriSpecDefaultWebClient.methodInternal(HttpMethod httpMethod) 限定符构造器说明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) DefaultClientRequestBuilder(HttpMethod method, URI url) (专用程序包)DefaultRequestBodyUriSpec(HttpMethod httpMethod) WebClientRequestException(Throwable ex, HttpMethod method, URI uri, HttpHeaders headers) Constructor for throwable. -
cn.taketoday.web.service.invoker中HttpMethod的使用
修饰符和类型字段说明private HttpMethodHttpRequestValues.Builder.httpMethodprivate final HttpMethodHttpRequestValues.httpMethodprivate final HttpMethodHttpServiceMethod.HttpRequestValuesInitializer.httpMethodhttpMethod记录组件的字段。修饰符和类型方法说明HttpRequestValues.getHttpMethod()Return the HTTP method to use for the request.HttpServiceMethod.HttpRequestValuesInitializer.httpMethod()返回httpMethod记录组件的值。private static HttpMethodHttpServiceMethod.HttpRequestValuesInitializer.initHttpMethod(HttpExchange typeAnnot, HttpExchange annot) 修饰符和类型方法说明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) HttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) Set the HTTP method for the request.ReactiveHttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) 参数类型为HttpMethod的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) privateHttpRequestValuesInitializer(HttpMethod httpMethod, String url, MediaType contentType, List<MediaType> acceptMediaTypes, Supplier<HttpRequestValues.Builder> requestValuesSupplier) 创建HttpRequestValuesInitializer记录的实例。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)