| Package | Description | 
|---|---|
| org.springframework.http | Contains a basic abstraction over client/server-side HTTP. | 
| org.springframework.http.client | Contains an abstraction over client-side HTTP. | 
| org.springframework.http.client.reactive | Abstractions for reactive HTTP client support including
  ClientHttpRequestandClientHttpResponseas well as aClientHttpConnector. | 
| org.springframework.http.client.support | This package provides generic HTTP support classes,
 to be used by higher-level classes like RestTemplate. | 
| org.springframework.http.server | Contains an abstraction over server-side HTTP. | 
| org.springframework.http.server.reactive | Abstractions for reactive HTTP server support including a
  ServerHttpRequestandServerHttpResponsealong with anHttpHandlerfor processing. | 
| org.springframework.mock.http.client | Mock implementations of client-side HTTP abstractions. | 
| org.springframework.mock.http.client.reactive | Mock implementations of reactive HTTP client contracts. | 
| org.springframework.mock.http.server.reactive | Mock implementations of reactive HTTP server contracts. | 
| org.springframework.mock.web | A comprehensive set of Servlet API 4.0 mock objects, targeted at usage with
 Spring's Web MVC framework. | 
| org.springframework.mock.web.reactive.function.server | Mock objects for the functional web framework. | 
| org.springframework.test.web.client | Contains client-side REST testing support. | 
| org.springframework.test.web.client.match | Contains built-in  RequestMatcherimplementations. | 
| org.springframework.test.web.reactive.server | Support for testing Spring WebFlux server endpoints via
  WebTestClient. | 
| org.springframework.test.web.servlet.client | Support for testing Spring MVC applications via
  WebTestClientwithMockMvcfor server request
 handling. | 
| org.springframework.test.web.servlet.request | Contains built-in  RequestBuilderimplementations. | 
| org.springframework.web | Common, generic interfaces that define minimal boundary points
 between Spring's web infrastructure and other framework modules. | 
| org.springframework.web.client | Core package of the client-side web support. | 
| org.springframework.web.context.request | Support for generic request context holding, in particular for
 scoping of application objects per HTTP request or HTTP session. | 
| org.springframework.web.cors | Support for CORS (Cross-Origin Resource Sharing),
 based on a common  CorsProcessorstrategy. | 
| org.springframework.web.cors.reactive | Reactive support for CORS (Cross-Origin Resource Sharing),
 based on a common  CorsProcessorstrategy. | 
| org.springframework.web.multipart | Multipart resolution framework for handling file uploads. | 
| org.springframework.web.multipart.support | Support classes for the multipart resolution framework. | 
| org.springframework.web.reactive.function.client | Provides a reactive  WebClientthat builds on top of theorg.springframework.http.client.reactivereactive HTTP adapter layer. | 
| org.springframework.web.reactive.function.server | Provides the types that make up Spring's functional web framework for Reactive environments. | 
| org.springframework.web.reactive.function.server.support | Classes supporting the  org.springframework.web.reactive.function.serverpackage. | 
| org.springframework.web.server | Core interfaces and classes for Spring's generic, reactive web support. | 
| org.springframework.web.servlet.function | Provides the types that make up Spring's functional web framework for Servlet environments. | 
| org.springframework.web.socket.sockjs.support | Support classes for SockJS including an
  AbstractSockJsServiceimplementation. | 
| org.springframework.web.socket.sockjs.transport | Server-side support for SockJS transports including
  TransportHandlerimplementations
 for processing incoming requests, theirsessioncounterparts for sending messages over the various transports, andDefaultSockJsService. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | HttpHeaders. getAccessControlRequestMethod()Return the value of the  Access-Control-Request-Methodrequest header. | 
| HttpMethod | RequestEntity. getMethod()Return the HTTP method of the request. | 
| default HttpMethod | HttpRequest. getMethod()Return the HTTP method of the request. | 
| static HttpMethod | HttpMethod. resolve(String method)Resolve the given method value to an  HttpMethod. | 
| static HttpMethod | HttpMethod. valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static HttpMethod[] | HttpMethod. values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<HttpMethod> | HttpHeaders. getAccessControlAllowMethods()Return the value of the  Access-Control-Allow-Methodsresponse header. | 
| Set<HttpMethod> | HttpHeaders. getAllow()Return the set of allowed  HTTP methods,
 as specified by theAllowheader. | 
| Modifier and Type | Method and Description | 
|---|---|
| B | ResponseEntity.HeadersBuilder. allow(HttpMethod... allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| 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,
      String uriTemplate,
      Object... 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 the  Access-Control-Request-Methodrequest header. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | HttpHeaders. setAccessControlAllowMethods(List<HttpMethod> allowedMethods)Set the (new) value of the  Access-Control-Allow-Methodsresponse header. | 
| void | HttpHeaders. setAllow(Set<HttpMethod> allowedMethods)Set the set of allowed  HTTP methods,
 as specified by theAllowheader. | 
| Constructor and Description | 
|---|
| RequestEntity(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. | 
| Modifier and Type | Method and Description | 
|---|---|
| AsyncClientHttpRequest | SimpleClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod httpMethod)Create a new asynchronous  AsyncClientHttpRequestfor the specified URI
 and HTTP method. | 
| AsyncClientHttpRequest | Netty4ClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod httpMethod)Deprecated.  | 
| AsyncClientHttpRequest | AsyncClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod httpMethod)Deprecated.  Create a new asynchronous  AsyncClientHttpRequestfor the specified URI
 and HTTP method. | 
| AsyncClientHttpRequest | OkHttp3ClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod httpMethod) | 
| AsyncClientHttpRequest | InterceptingAsyncClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod method)Deprecated.  | 
| AsyncClientHttpRequest | HttpComponentsAsyncClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod httpMethod)Deprecated.  | 
| protected org.apache.http.protocol.HttpContext | HttpComponentsClientHttpRequestFactory. createHttpContext(HttpMethod httpMethod,
                 URI uri)Template methods that creates a  HttpContextfor the given HTTP method and URI. | 
| protected HttpUriRequest | HttpComponentsClientHttpRequestFactory. createHttpUriRequest(HttpMethod httpMethod,
                    URI uri)Create a Commons HttpMethodBase object for the given HTTP method and URI specification. | 
| ClientHttpRequest | AbstractClientHttpRequestFactoryWrapper. createRequest(URI uri,
             HttpMethod httpMethod)This implementation simply calls  AbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)with the wrapped request factory provided to the
 constructor. | 
| ClientHttpRequest | ClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod)Create a new  ClientHttpRequestfor the specified URI and HTTP method. | 
| ClientHttpRequest | SimpleClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod) | 
| ClientHttpRequest | Netty4ClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod)Deprecated.  | 
| ClientHttpRequest | HttpComponentsClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod) | 
| ClientHttpRequest | OkHttp3ClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod) | 
| protected abstract ClientHttpRequest | AbstractClientHttpRequestFactoryWrapper. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory)Create a new  ClientHttpRequestfor the specified URI and HTTP method
 by using the passed-on request factory. | 
| protected ClientHttpRequest | InterceptingClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory) | 
| protected ClientHttpRequest | BufferingClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod,
             ClientHttpRequestFactory requestFactory) | 
| 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 Type | Method and Description | 
|---|---|
| void | HttpComponentsClientHttpRequestFactory. setHttpContextFactory(BiFunction<HttpMethod,URI,org.apache.http.protocol.HttpContext> httpContextFactory)Configure a factory to pre-create the  HttpContextfor each request. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ClientHttpRequest. getMethod()Return the HTTP method of the request. | 
| HttpMethod | ClientHttpRequestDecorator. getMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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> | JettyClientHttpConnector. connect(HttpMethod method,
       URI uri,
       Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) | 
| 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 given  HttpMethodandURIand apply the givenrequestCallbackwhen the HTTP
 request of the underlying API can be initialized and written to. | 
| reactor.core.publisher.Mono<ClientHttpResponse> | ReactorClientHttpConnector. connect(HttpMethod method,
       URI uri,
       Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) | 
| Constructor and Description | 
|---|
| HttpComponentsClientHttpConnector(org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient client,
                                 BiFunction<HttpMethod,URI,? extends org.apache.hc.client5.http.protocol.HttpClientContext> contextProvider)Constructor with a pre-configured  CloseableHttpAsyncClientinstance
 and aHttpClientContextsupplier lambda which is called before each request
 and passed to the client. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | HttpRequestWrapper. getMethod()Return the method of the wrapped request. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected AsyncClientHttpRequest | AsyncHttpAccessor. createAsyncRequest(URI url,
                  HttpMethod method)Deprecated.  Create a new  AsyncClientHttpRequestvia this template'sAsyncClientHttpRequestFactory. | 
| protected ClientHttpRequest | HttpAccessor. createRequest(URI url,
             HttpMethod method)Create a new  ClientHttpRequestvia this template'sClientHttpRequestFactory. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ServletServerHttpRequest. getMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ServerHttpRequestDecorator. getMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| ServerHttpRequest.Builder | ServerHttpRequest.Builder. method(HttpMethod httpMethod)Set the HTTP method to return. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | MockClientHttpRequest. getMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | MockClientHttpRequest. setMethod(HttpMethod httpMethod) | 
| Constructor and Description | 
|---|
| MockAsyncClientHttpRequest(HttpMethod httpMethod,
                          URI uri)Deprecated.  | 
| MockClientHttpRequest(HttpMethod httpMethod,
                     URI uri)Create an instance with the given HttpMethod and URI. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | MockClientHttpRequest. getMethod() | 
| Constructor and Description | 
|---|
| MockClientHttpRequest(HttpMethod httpMethod,
                     String urlTemplate,
                     Object... vars) | 
| MockClientHttpRequest(HttpMethod httpMethod,
                     URI url) | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | MockServerHttpRequest. getMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| static MockServerHttpRequest.BodyBuilder | MockServerHttpRequest. method(HttpMethod method,
      String uri,
      Object... vars)Alternative to  MockServerHttpRequest.method(HttpMethod, URI)that accepts a URI template. | 
| static MockServerHttpRequest.BodyBuilder | MockServerHttpRequest. method(HttpMethod method,
      URI url)Create a builder with the given HTTP method and a  URI. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | MockMultipartHttpServletRequest. getRequestMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | MockServerRequest. method() | 
| Modifier and Type | Method and Description | 
|---|---|
| MockServerRequest.Builder | MockServerRequest.Builder. method(HttpMethod method) | 
| Modifier and Type | Method and Description | 
|---|---|
| AsyncClientHttpRequest | MockMvcClientHttpRequestFactory. createAsyncRequest(URI uri,
                  HttpMethod method) | 
| ClientHttpRequest | MockMvcClientHttpRequestFactory. createRequest(URI uri,
             HttpMethod httpMethod) | 
| Modifier and Type | Method and Description | 
|---|---|
| static RequestMatcher | MockRestRequestMatchers. method(HttpMethod method)Assert the  HttpMethodof the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ExchangeResult. getMethod()Return the method of the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Mono<ClientHttpResponse> | HttpHandlerConnector. connect(HttpMethod httpMethod,
       URI uri,
       Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) | 
| WebTestClient.RequestBodyUriSpec | WebTestClient. method(HttpMethod method)Prepare a request for the specified  HttpMethod. | 
| Modifier and Type | Method and Description | 
|---|---|
| reactor.core.publisher.Mono<ClientHttpResponse> | MockMvcHttpConnector. connect(HttpMethod method,
       URI uri,
       Function<? super ClientHttpRequest,reactor.core.publisher.Mono<Void>> requestCallback) | 
| Modifier and Type | Method and Description | 
|---|---|
| static MockHttpServletRequestBuilder | MockMvcRequestBuilders. request(HttpMethod method,
       String urlTemplate,
       Object... uriVars)Create a  MockHttpServletRequestBuilderfor a request with the given HTTP method. | 
| static MockHttpServletRequestBuilder | MockMvcRequestBuilders. request(HttpMethod httpMethod,
       URI uri)Create a  MockHttpServletRequestBuilderfor a request with the given HTTP method. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<HttpMethod> | HttpRequestMethodNotSupportedException. getSupportedHttpMethods()Return the actually supported HTTP methods as  HttpMethodinstances,
 ornullif not known. | 
| Modifier and Type | Method and Description | 
|---|---|
| ListenableFuture<Set<HttpMethod>> | AsyncRestOperations. optionsForAllow(String url,
               Map<String,?> uriVariables)Deprecated.  Asynchronously return the value of the Allow header for the given URI. | 
| Set<HttpMethod> | RestTemplate. optionsForAllow(String url,
               Map<String,?> uriVariables) | 
| Set<HttpMethod> | RestOperations. optionsForAllow(String url,
               Map<String,?> uriVariables)Return the value of the Allow header for the given URI. | 
| ListenableFuture<Set<HttpMethod>> | AsyncRestTemplate. optionsForAllow(String url,
               Map<String,?> uriVars)Deprecated.  | 
| ListenableFuture<Set<HttpMethod>> | AsyncRestOperations. optionsForAllow(String url,
               Object... uriVariables)Deprecated.  Asynchronously return the value of the Allow header for the given URI. | 
| Set<HttpMethod> | RestTemplate. optionsForAllow(String url,
               Object... uriVariables) | 
| Set<HttpMethod> | RestOperations. optionsForAllow(String url,
               Object... uriVariables)Return the value of the Allow header for the given URI. | 
| ListenableFuture<Set<HttpMethod>> | AsyncRestTemplate. optionsForAllow(String url,
               Object... uriVars)Deprecated.  | 
| ListenableFuture<Set<HttpMethod>> | AsyncRestOperations. optionsForAllow(URI url)Deprecated.  Asynchronously return the value of the Allow header for the given URL. | 
| Set<HttpMethod> | RestTemplate. optionsForAllow(URI url) | 
| Set<HttpMethod> | RestOperations. optionsForAllow(URI url)Return the value of the Allow header for the given URL. | 
| ListenableFuture<Set<HttpMethod>> | AsyncRestTemplate. optionsForAllow(URI url)Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| protected <T> ListenableFuture<T> | AsyncRestTemplate. doExecute(URI url,
         HttpMethod method,
         AsyncRequestCallback requestCallback,
         ResponseExtractor<T> responseExtractor)Deprecated.  Execute the given method on the provided URI. | 
| protected <T> T | RestTemplate. doExecute(URI url,
         HttpMethod method,
         RequestCallback requestCallback,
         ResponseExtractor<T> responseExtractor)Execute the given method on the provided URI. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Map<String,?> uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the
 given request entity to the request, and returns the response as
  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Map<String,?> uriVariables) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Map<String,?> uriVariables)Deprecated.  | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Object... uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the
 given request entity to the request, and returns the response as
  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Object... uriVariables) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType,
        Object... uriVariables)Deprecated.  | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Map<String,?> uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the given
 request entity to the request, and returns the response as  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Map<String,?> uriVariables) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Map<String,?> uriVariables)Deprecated.  | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Object... uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the given
 request entity to the request, and returns the response as  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Object... uriVariables) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(String url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType,
        Object... uriVariables)Deprecated.  | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the
 given request entity to the request, and returns the response as
  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        Class<T> responseType)Deprecated.  | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestOperations. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType)Deprecated.  Asynchronously execute the HTTP method to the given URI template, writing the given
 request entity to the request, and returns the response as  ResponseEntity. | 
| <T> ResponseEntity<T> | RestTemplate. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType) | 
| <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 as  ResponseEntity. | 
| <T> ListenableFuture<ResponseEntity<T>> | AsyncRestTemplate. exchange(URI url,
        HttpMethod method,
        HttpEntity<?> requestEntity,
        ParameterizedTypeReference<T> responseType)Deprecated.  | 
| <T> ListenableFuture<T> | AsyncRestOperations. execute(String url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor,
       Map<String,?> uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, preparing the
 request with the  AsyncRequestCallback, and reading the response with aResponseExtractor. | 
| <T> ListenableFuture<T> | AsyncRestTemplate. execute(String url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor,
       Map<String,?> uriVariables)Deprecated.  | 
| <T> ListenableFuture<T> | AsyncRestOperations. execute(String url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor,
       Object... uriVariables)Deprecated.  Asynchronously execute the HTTP method to the given URI template, preparing the
 request with the  AsyncRequestCallback, and reading the response with aResponseExtractor. | 
| <T> ListenableFuture<T> | AsyncRestTemplate. execute(String url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor,
       Object... uriVariables)Deprecated.  | 
| <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 the
  RequestCallback, 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 the
  RequestCallback, 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 the
  RequestCallback, and reading the response with aResponseExtractor. | 
| <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 the
  RequestCallback, and reading the response with aResponseExtractor. | 
| <T> ListenableFuture<T> | AsyncRestOperations. execute(URI url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor)Deprecated.  Asynchronously execute the HTTP method to the given URL, preparing the request
 with the  AsyncRequestCallback, and reading the response with aResponseExtractor. | 
| <T> ListenableFuture<T> | AsyncRestTemplate. execute(URI url,
       HttpMethod method,
       AsyncRequestCallback requestCallback,
       ResponseExtractor<T> responseExtractor)Deprecated.  | 
| <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 the
  RequestCallback, 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 the
  RequestCallback, and reading the response with aResponseExtractor. | 
| default void | ResponseErrorHandler. handleError(URI url,
           HttpMethod method,
           ClientHttpResponse response)Alternative to  ResponseErrorHandler.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 the  ResponseErrorHandlerif necessary. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ServletWebRequest. getHttpMethod()Return the HTTP method of the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<HttpMethod> | CorsConfiguration. checkHttpMethod(HttpMethod requestMethod)Check the HTTP request method (or the method from the
  Access-Control-Request-Methodheader 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 Type | Method and Description | 
|---|---|
| void | CorsConfiguration. addAllowedMethod(HttpMethod method)Add an HTTP method to allow. | 
| List<HttpMethod> | CorsConfiguration. checkHttpMethod(HttpMethod requestMethod)Check the HTTP request method (or the method from the
  Access-Control-Request-Methodheader 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 Type | Method and Description | 
|---|---|
| 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 Type | Method and Description | 
|---|---|
| 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 Type | Method and Description | 
|---|---|
| HttpMethod | MultipartHttpServletRequest. getRequestMethod()Return this request's method as a convenient HttpMethod instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | AbstractMultipartHttpServletRequest. getRequestMethod() | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | WebClientRequestException. getMethod()Return the HTTP request method. | 
| HttpMethod | ClientRequest. method()Return the HTTP method. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ClientRequest.Builder | ClientRequest. create(HttpMethod method,
      URI url)Create a request builder with the given method and url. | 
| ClientRequest.Builder | ClientRequest.Builder. method(HttpMethod method)Set the method of the request. | 
| WebClient.RequestBodyUriSpec | WebClient. method(HttpMethod method)Start building a request for the given  HttpMethod. | 
| static ClientRequest.Builder | ClientRequest. method(HttpMethod method,
      URI url)Deprecated. 
 in favor of  ClientRequest.create(HttpMethod, URI) | 
| Constructor and Description | 
|---|
| WebClientRequestException(Throwable ex,
                         HttpMethod method,
                         URI uri,
                         HttpHeaders headers)Constructor for throwable. | 
| Modifier and Type | Method and Description | 
|---|---|
| default HttpMethod | ServerRequest. method()Get the HTTP method. | 
| Modifier and Type | Method and Description | 
|---|---|
| B | ServerResponse.HeadersBuilder. allow(HttpMethod... allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| EntityResponse.Builder<T> | EntityResponse.Builder. allow(HttpMethod... allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| ServerRequest.Builder | ServerRequest.Builder. method(HttpMethod method)Set the method of the request. | 
| static RequestPredicate | RequestPredicates. method(HttpMethod httpMethod)Return a  RequestPredicatethat matches if the request's
 HTTP method is equal to the given method. | 
| static RequestPredicate | RequestPredicates. methods(HttpMethod... httpMethods)Return a  RequestPredicatethat matches if the request's
 HTTP method is equal to one the of the given methods. | 
| Modifier and Type | Method and Description | 
|---|---|
| B | ServerResponse.HeadersBuilder. allow(Set<HttpMethod> allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| EntityResponse.Builder<T> | EntityResponse.Builder. allow(Set<HttpMethod> allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| void | RequestPredicates.Visitor. method(Set<HttpMethod> methods)Receive notification of an HTTP method predicate. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | ServerRequestWrapper. method() | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<HttpMethod> | MethodNotAllowedException. getSupportedMethods()Return the list of supported HTTP methods. | 
| Constructor and Description | 
|---|
| MethodNotAllowedException(HttpMethod method,
                         Collection<HttpMethod> supportedMethods) | 
| Constructor and Description | 
|---|
| MethodNotAllowedException(HttpMethod method,
                         Collection<HttpMethod> supportedMethods) | 
| MethodNotAllowedException(String method,
                         Collection<HttpMethod> supportedMethods) | 
| Modifier and Type | Method and Description | 
|---|---|
| default HttpMethod | ServerRequest. method()Get the HTTP method. | 
| Modifier and Type | Method and Description | 
|---|---|
| B | ServerResponse.HeadersBuilder. allow(HttpMethod... allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| EntityResponse.Builder<T> | EntityResponse.Builder. allow(HttpMethod... allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| ServerRequest.Builder | ServerRequest.Builder. method(HttpMethod method)Set the method of the request. | 
| static RequestPredicate | RequestPredicates. method(HttpMethod httpMethod)Return a  RequestPredicatethat matches if the request's
 HTTP method is equal to the given method. | 
| static RequestPredicate | RequestPredicates. methods(HttpMethod... httpMethods)Return a  RequestPredicatethat matches if the request's
 HTTP method is equal to one the of the given methods. | 
| Modifier and Type | Method and Description | 
|---|---|
| B | ServerResponse.HeadersBuilder. allow(Set<HttpMethod> allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| EntityResponse.Builder<T> | EntityResponse.Builder. allow(Set<HttpMethod> allowedMethods)Set the set of allowed  HTTP methods, as specified
 by theAllowheader. | 
| void | RequestPredicates.Visitor. method(Set<HttpMethod> methods)Receive notification of an HTTP method predicate. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected boolean | AbstractSockJsService. checkOrigin(ServerHttpRequest request,
           ServerHttpResponse response,
           HttpMethod... httpMethods) | 
| protected void | AbstractSockJsService. sendMethodNotAllowed(ServerHttpResponse response,
                    HttpMethod... httpMethods) | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpMethod | TransportType. getHttpMethod() |