Uses of Class
org.springframework.http.HttpMethod
Package
Description
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.Mock implementations of client-side HTTP abstractions.
Mock implementations of reactive HTTP client contracts.
Mock implementations of reactive HTTP server contracts.
A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with
Spring's Web MVC framework.
Mock objects for the functional web framework.
Contains client-side REST testing support.
Contains built-in
RequestMatcher
implementations.Support for testing Spring WebFlux server endpoints via
WebTestClient
.Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
RequestBuilder
implementations.Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
Core package of the client-side web support.
Support for generic request context holding, in particular for
scoping of application objects per HTTP request or HTTP session.
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Multipart resolution framework for handling file uploads.
Support classes for the multipart resolution framework.
Provides a reactive
WebClient
that builds on top of the
org.springframework.http.client.reactive
reactive HTTP adapter layer.Provides the types that make up Spring's functional web framework for Reactive environments.
Classes supporting the
org.springframework.web.reactive.function.server
package.Core interfaces and classes for Spring's generic, reactive web support.
Provides the types that make up Spring's functional web framework for Servlet environments.
Support classes for SockJS including an
AbstractSockJsService
implementation.Server-side support for SockJS transports including
TransportHandler
implementations
for processing incoming requests, their
session
counterparts for sending messages over the various transports, and
DefaultSockJsService
.-
Uses of HttpMethod in org.springframework.http
Modifier and TypeFieldDescriptionstatic final HttpMethod
HttpMethod.DELETE
The HTTP methodDELETE
.static final HttpMethod
HttpMethod.GET
The HTTP methodGET
.static final HttpMethod
HttpMethod.HEAD
The HTTP methodHEAD
.static final HttpMethod
HttpMethod.OPTIONS
The HTTP methodOPTIONS
.static final HttpMethod
HttpMethod.PATCH
The HTTP methodPATCH
.static final HttpMethod
HttpMethod.POST
The HTTP methodPOST
.static final HttpMethod
HttpMethod.PUT
The HTTP methodPUT
.static final HttpMethod
HttpMethod.TRACE
The HTTP methodTRACE
.Modifier and TypeMethodDescriptionHttpHeaders.getAccessControlRequestMethod()
Return the value of theAccess-Control-Request-Method
request header.HttpRequest.getMethod()
Return the HTTP method of the request.RequestEntity.getMethod()
Return the HTTP method of the request.static HttpMethod
Deprecated.static HttpMethod
Return anHttpMethod
object for the given value.static HttpMethod[]
HttpMethod.values()
Returns an array containing the standard HTTP methods.Modifier and TypeMethodDescriptionHttpHeaders.getAccessControlAllowMethods()
Return the value of theAccess-Control-Allow-Methods
response header.HttpHeaders.getAllow()
Return the set of allowedHTTP methods
, as specified by theAllow
header.Modifier and TypeMethodDescriptionResponseEntity.HeadersBuilder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.int
HttpMethod.compareTo
(HttpMethod other) static RequestEntity.BodyBuilder
RequestEntity.method
(HttpMethod method, String uriTemplate, Object... uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilder
RequestEntity.method
(HttpMethod method, String uriTemplate, Map<String, ?> uriVariables) Create a builder with the given HTTP method, URI template, and variables.static RequestEntity.BodyBuilder
RequestEntity.method
(HttpMethod method, URI url) Create a builder with the given method and url.void
HttpHeaders.setAccessControlRequestMethod
(HttpMethod requestMethod) Set the (new) value of theAccess-Control-Request-Method
request header.Modifier and TypeMethodDescriptionvoid
HttpHeaders.setAccessControlAllowMethods
(List<HttpMethod> allowedMethods) Set the (new) value of theAccess-Control-Allow-Methods
response header.void
HttpHeaders.setAllow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.ModifierConstructorDescriptionRequestEntity
(HttpMethod method, URI url) Constructor with method and URL but without body nor headers.RequestEntity
(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, MultiValueMap<String, String> headers, HttpMethod method, URI url) Constructor with method, URL, headers and body.RequestEntity
(T body, MultiValueMap<String, String> headers, HttpMethod method, URI url, Type type) Constructor with method, URL, headers, body and type. -
Uses of HttpMethod in org.springframework.http.client
Modifier and TypeMethodDescriptionprotected org.apache.http.protocol.HttpContext
HttpComponentsClientHttpRequestFactory.createHttpContext
(HttpMethod httpMethod, URI uri) Template methods that creates aHttpContext
for the given HTTP method and URI.protected org.apache.http.client.methods.HttpUriRequest
HttpComponentsClientHttpRequestFactory.createHttpUriRequest
(HttpMethod httpMethod, URI uri) Create a Commons HttpMethodBase object for the given HTTP method and URI specification.final ClientHttpRequest
AbstractClientHttpRequestFactoryWrapper.createRequest
(URI uri, HttpMethod httpMethod) This implementation simply callsAbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)
with the wrapped request factory provided to the constructor.protected abstract ClientHttpRequest
AbstractClientHttpRequestFactoryWrapper.createRequest
(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) Create a newClientHttpRequest
for the specified URI and HTTP method by using the passed-on request factory.protected ClientHttpRequest
BufferingClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) ClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Create a newClientHttpRequest
for the specified URI and HTTP method.HttpComponentsClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) protected ClientHttpRequest
InterceptingClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) OkHttp3ClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) protected boolean
BufferingClientHttpRequestFactory.shouldBuffer
(URI uri, HttpMethod httpMethod) Indicates whether the request/response exchange for the given URI and method should be buffered in memory.Modifier and TypeMethodDescriptionvoid
HttpComponentsClientHttpRequestFactory.setHttpContextFactory
(BiFunction<HttpMethod, URI, org.apache.http.protocol.HttpContext> httpContextFactory) Configure a factory to pre-create theHttpContext
for each request. -
Uses of HttpMethod in org.springframework.http.client.reactive
Modifier and TypeMethodDescriptionClientHttpRequest.getMethod()
Return the HTTP method of the request.ClientHttpRequestDecorator.getMethod()
Modifier and TypeMethodDescriptionreactor.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 givenHttpMethod
andURI
and apply the givenrequestCallback
when 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) ModifierConstructorDescriptionHttpComponentsClientHttpConnector
(CloseableHttpAsyncClient client, BiFunction<HttpMethod, URI, ? extends HttpClientContext> contextProvider) Constructor with a pre-configuredCloseableHttpAsyncClient
instance and aHttpClientContext
supplier lambda which is called before each request and passed to the client. -
Uses of HttpMethod in org.springframework.http.client.support
Modifier and TypeMethodDescriptionHttpRequestWrapper.getMethod()
Return the method of the wrapped request.Modifier and TypeMethodDescriptionprotected ClientHttpRequest
HttpAccessor.createRequest
(URI url, HttpMethod method) Create a newClientHttpRequest
via this template'sClientHttpRequestFactory
. -
Uses of HttpMethod in org.springframework.http.server
-
Uses of HttpMethod in org.springframework.http.server.reactive
Modifier and TypeMethodDescriptionServerHttpRequest.Builder.method
(HttpMethod httpMethod) Set the HTTP method to return. -
Uses of HttpMethod in org.springframework.mock.http.client
ModifierConstructorDescriptionMockClientHttpRequest
(HttpMethod httpMethod, URI uri) Create an instance with the given HttpMethod and URI. -
Uses of HttpMethod in org.springframework.mock.http.client.reactive
ModifierConstructorDescriptionMockClientHttpRequest
(HttpMethod httpMethod, String urlTemplate, Object... vars) MockClientHttpRequest
(HttpMethod httpMethod, URI url) -
Uses of HttpMethod in org.springframework.mock.http.server.reactive
Modifier and TypeMethodDescriptionMockServerHttpRequest.method
(HttpMethod method, String uri, Object... vars) Alternative toMockServerHttpRequest.method(HttpMethod, URI)
that accepts a URI template.MockServerHttpRequest.method
(HttpMethod method, URI url) Create a builder with the given HTTP method and aURI
. -
Uses of HttpMethod in org.springframework.mock.web
-
Uses of HttpMethod in org.springframework.mock.web.reactive.function.server
-
Uses of HttpMethod in org.springframework.test.web.client
Modifier and TypeMethodDescriptionMockMvcClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) -
Uses of HttpMethod in org.springframework.test.web.client.match
Modifier and TypeMethodDescriptionstatic RequestMatcher
MockRestRequestMatchers.method
(HttpMethod method) Assert theHttpMethod
of the request. -
Uses of HttpMethod in org.springframework.test.web.reactive.server
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse>
HttpHandlerConnector.connect
(HttpMethod httpMethod, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) WebTestClient.method
(HttpMethod method) Prepare a request for the specifiedHttpMethod
. -
Uses of HttpMethod in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ClientHttpResponse>
MockMvcHttpConnector.connect
(HttpMethod method, URI uri, Function<? super ClientHttpRequest, reactor.core.publisher.Mono<Void>> requestCallback) -
Uses of HttpMethod in org.springframework.test.web.servlet.request
Modifier and TypeMethodDescriptionMockMvcRequestBuilders.request
(HttpMethod method, String urlTemplate, Object... uriVars) Create aMockHttpServletRequestBuilder
for a request with the given HTTP method.MockMvcRequestBuilders.request
(HttpMethod httpMethod, URI uri) Create aMockHttpServletRequestBuilder
for a request with the given HTTP method. -
Uses of HttpMethod in org.springframework.web
Modifier and TypeMethodDescriptionHttpRequestMethodNotSupportedException.getSupportedHttpMethods()
Return the actually supported HTTP methods asHttpMethod
instances, ornull
if not known.ModifierConstructorDescriptionHttpMediaTypeNotSupportedException
(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. -
Uses of HttpMethod in org.springframework.web.client
Modifier and TypeMethodDescriptionRestOperations.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) Modifier and TypeMethodDescriptionprotected <T> T
RestTemplate.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, 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
(String url, HttpMethod method, HttpEntity<?> requestEntity, 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, 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
(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>
RestOperations.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, 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>
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
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Object... uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(String url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, Map<String, ?> uriVariables) <T> ResponseEntity<T>
RestTemplate.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, Class<T> responseType) <T> ResponseEntity<T>
RestTemplate.exchange
(URI url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> T
RestOperations.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> T
RestOperations.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> T
RestOperations.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> T
RestTemplate.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> T
RestTemplate.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> T
RestTemplate.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 void
ResponseErrorHandler.handleError
(URI url, HttpMethod method, ClientHttpResponse response) Alternative toResponseErrorHandler.handleError(ClientHttpResponse)
with extra information providing access to the request URL and HTTP method.protected void
RestTemplate.handleResponse
(URI url, HttpMethod method, ClientHttpResponse response) Handle the given response, performing appropriate logging and invoking theResponseErrorHandler
if necessary. -
Uses of HttpMethod in org.springframework.web.context.request
Modifier and TypeMethodDescriptionServletWebRequest.getHttpMethod()
Return the HTTP method of the request. -
Uses of HttpMethod in org.springframework.web.cors
Modifier and TypeMethodDescriptionCorsConfiguration.checkHttpMethod
(HttpMethod requestMethod) Check the HTTP request method (or the method from theAccess-Control-Request-Method
header on a pre-flight request) against the configured allowed methods.protected List<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request.Modifier and TypeMethodDescriptionvoid
CorsConfiguration.addAllowedMethod
(HttpMethod method) Add an HTTP method to allow.CorsConfiguration.checkHttpMethod
(HttpMethod requestMethod) Check the HTTP request method (or the method from theAccess-Control-Request-Method
header on a pre-flight request) against the configured allowed methods.protected List<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request. -
Uses of HttpMethod in org.springframework.web.cors.reactive
Modifier and TypeMethodDescriptionprotected List<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request.Modifier and TypeMethodDescriptionprotected List<HttpMethod>
DefaultCorsProcessor.checkMethods
(CorsConfiguration config, HttpMethod requestMethod) Check the HTTP method and determine the methods for the response of a pre-flight request. -
Uses of HttpMethod in org.springframework.web.multipart
Modifier and TypeMethodDescriptionMultipartHttpServletRequest.getRequestMethod()
Return this request's method as a convenient HttpMethod instance. -
Uses of HttpMethod in org.springframework.web.multipart.support
-
Uses of HttpMethod in org.springframework.web.reactive.function.client
Modifier and TypeMethodDescriptionWebClientRequestException.getMethod()
Return the HTTP request method.ClientRequest.method()
Return the HTTP method.Modifier and TypeMethodDescriptionstatic ClientRequest.Builder
ClientRequest.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.static ClientRequest.Builder
ClientRequest.method
(HttpMethod method, URI url) Deprecated.in favor ofClientRequest.create(HttpMethod, URI)
WebClient.method
(HttpMethod method) Start building a request for the givenHttpMethod
.ModifierConstructorDescriptionWebClientRequestException
(Throwable ex, HttpMethod method, URI uri, HttpHeaders headers) Constructor for throwable. -
Uses of HttpMethod in org.springframework.web.reactive.function.server
Modifier and TypeMethodDescriptionEntityResponse.Builder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.ServerResponse.HeadersBuilder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.static RequestPredicate
RequestPredicates.method
(HttpMethod httpMethod) Return aRequestPredicate
that 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 RequestPredicate
RequestPredicates.methods
(HttpMethod... httpMethods) Return aRequestPredicate
that matches if the request's HTTP method is equal to one the of the given methods.Modifier and TypeMethodDescriptionEntityResponse.Builder.allow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.ServerResponse.HeadersBuilder.allow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.void
RequestPredicates.Visitor.method
(Set<HttpMethod> methods) Receive notification of an HTTP method predicate. -
Uses of HttpMethod in org.springframework.web.reactive.function.server.support
-
Uses of HttpMethod in org.springframework.web.server
Modifier and TypeMethodDescriptionMethodNotAllowedException.getSupportedMethods()
Return the list of supported HTTP methods.ModifierConstructorDescriptionMethodNotAllowedException
(HttpMethod method, Collection<HttpMethod> supportedMethods) UnsupportedMediaTypeStatusException
(MediaType contentType, List<MediaType> supportedTypes, 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.ModifierConstructorDescriptionMethodNotAllowedException
(String method, Collection<HttpMethod> supportedMethods) MethodNotAllowedException
(HttpMethod method, Collection<HttpMethod> supportedMethods) -
Uses of HttpMethod in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionEntityResponse.Builder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.ServerResponse.HeadersBuilder.allow
(HttpMethod... allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.static RequestPredicate
RequestPredicates.method
(HttpMethod httpMethod) Return aRequestPredicate
that 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 RequestPredicate
RequestPredicates.methods
(HttpMethod... httpMethods) Return aRequestPredicate
that matches if the request's HTTP method is equal to one the of the given methods.Modifier and TypeMethodDescriptionEntityResponse.Builder.allow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.ServerResponse.HeadersBuilder.allow
(Set<HttpMethod> allowedMethods) Set the set of allowedHTTP methods
, as specified by theAllow
header.void
RequestPredicates.Visitor.method
(Set<HttpMethod> methods) Receive notification of an HTTP method predicate. -
Uses of HttpMethod in org.springframework.web.socket.sockjs.support
Modifier and TypeMethodDescriptionprotected boolean
AbstractSockJsService.checkOrigin
(ServerHttpRequest request, ServerHttpResponse response, HttpMethod... httpMethods) protected void
AbstractSockJsService.sendMethodNotAllowed
(ServerHttpResponse response, HttpMethod... httpMethods) -
Uses of HttpMethod in org.springframework.web.socket.sockjs.transport
valueOf(String)