| Package | Description | 
|---|---|
| org.springframework.http.client | Contains an abstraction over client-side HTTP. | 
| 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.server.reactive | Mock implementations of reactive HTTP server contracts. | 
| 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.util | Miscellaneous web utility classes, such as HTML escaping and cookie handling. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | AsyncClientHttpRequestDeprecated. 
 as of Spring 5.0, in favor of  ClientRequest | 
| interface  | ClientHttpRequestRepresents a client-side HTTP request. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractClientHttpRequestAbstract base for  ClientHttpRequestthat makes sure that headers
 and body are not written multiple times. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClientHttpResponse | ClientHttpRequestExecution. execute(HttpRequest request,
       byte[] body)Execute the request with the given request attributes and body,
 and return the response. | 
| ListenableFuture<ClientHttpResponse> | AsyncClientHttpRequestExecution. executeAsync(HttpRequest request,
            byte[] body)Deprecated.  Resume the request execution by invoking the next interceptor in the chain
 or executing the request to the remote service. | 
| ListenableFuture<ClientHttpResponse> | AsyncClientHttpRequestInterceptor. intercept(HttpRequest request,
         byte[] body,
         AsyncClientHttpRequestExecution execution)Deprecated.  Intercept the given request, and return a response future. | 
| ClientHttpResponse | ClientHttpRequestInterceptor. intercept(HttpRequest request,
         byte[] body,
         ClientHttpRequestExecution execution)Intercept the given request, and return a response. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | HttpRequestWrapperProvides a convenient implementation of the  HttpRequestinterface
 that can be overridden to adapt the request. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpRequest | HttpRequestWrapper. getRequest()Return the wrapped request. | 
| Modifier and Type | Method and Description | 
|---|---|
| ClientHttpResponse | BasicAuthorizationInterceptor. intercept(HttpRequest request,
         byte[] body,
         ClientHttpRequestExecution execution)Deprecated.  | 
| ClientHttpResponse | BasicAuthenticationInterceptor. intercept(HttpRequest request,
         byte[] body,
         ClientHttpRequestExecution execution) | 
| Constructor and Description | 
|---|
| HttpRequestWrapper(HttpRequest request)Create a new  HttpRequestwrapping the given request object. | 
| Modifier and Type | Interface and Description | 
|---|---|
| interface  | ServerHttpRequestRepresents a server-side HTTP request. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ServletServerHttpRequestServerHttpRequestimplementation that is based on aHttpServletRequest. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AbstractServerHttpRequestCommon base class for  ServerHttpRequestimplementations. | 
| class  | ServerHttpRequestDecoratorWraps another  ServerHttpRequestand delegates all methods to it. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MockAsyncClientHttpRequestDeprecated. 
 as of Spring 5.0, with no direct replacement | 
| class  | MockClientHttpRequestMock implementation of  ClientHttpRequest. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | MockServerHttpRequestMock extension of  AbstractServerHttpRequestfor use in tests without
 an actual server. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | RequestPartServletServerHttpRequestServerHttpRequestimplementation that accesses one part of a multipart
 request. | 
| Modifier and Type | Method and Description | 
|---|---|
| HttpRequest | WebClientResponseException. getRequest()Return the corresponding request. | 
| Modifier and Type | Method and Description | 
|---|---|
| static WebClientResponseException | WebClientResponseException. create(int statusCode,
      String statusText,
      HttpHeaders headers,
      byte[] body,
      Charset charset,
      HttpRequest request)Create  WebClientResponseExceptionor an HTTP status specific subclass. | 
| ClientResponse.Builder | ClientResponse.Builder. request(HttpRequest request)Set the request associated with the response. | 
| Constructor and Description | 
|---|
| UnknownHttpStatusCodeException(int statusCode,
                              HttpHeaders headers,
                              byte[] responseBody,
                              Charset responseCharset,
                              HttpRequest request)Create a new instance of the  UnknownHttpStatusCodeExceptionwith the given
 parameters. | 
| WebClientResponseException(int status,
                          String reasonPhrase,
                          HttpHeaders headers,
                          byte[] body,
                          Charset charset,
                          HttpRequest request)Constructor with response data only, and a default message. | 
| WebClientResponseException(String message,
                          int statusCode,
                          String statusText,
                          HttpHeaders headers,
                          byte[] responseBody,
                          Charset charset,
                          HttpRequest request)Constructor with a prepared message. | 
| Modifier and Type | Method and Description | 
|---|---|
| static UriComponentsBuilder | UriComponentsBuilder. fromHttpRequest(HttpRequest request)Create a new  UriComponentsobject from the URI associated with
 the given HttpRequest while also overlaying with values from the headers
 "Forwarded" (RFC 7239),
 or "X-Forwarded-Host", "X-Forwarded-Port", and "X-Forwarded-Proto" if
 "Forwarded" is not found. | 
| static boolean | WebUtils. isSameOrigin(HttpRequest request)Check if the request is a same-origin one, based on  Origin,Host,Forwarded,X-Forwarded-Proto,X-Forwarded-HostandX-Forwarded-Portheaders. | 
| static boolean | WebUtils. isValidOrigin(HttpRequest request,
             Collection<String> allowedOrigins)Check the given request origin against a list of allowed origins. | 
| static InetSocketAddress | UriComponentsBuilder. parseForwardedFor(HttpRequest request,
                 InetSocketAddress remoteAddress)Parse the first "Forwarded: for=..." or "X-Forwarded-For" header value to
 an  InetSocketAddressrepresenting the address of the client. |