Uses of Interface
org.springframework.http.HttpRequest
Packages that use HttpRequest
Package
Description
Contains an abstraction over client-side HTTP.
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 server contracts.
Core package of the client-side web support.
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.Classes supporting the 
org.springframework.web.reactive.function.client package.Miscellaneous web utility classes, such as HTML escaping and cookie handling.
- 
Uses of HttpRequest in org.springframework.http.clientSubinterfaces of HttpRequest in org.springframework.http.clientModifier and TypeInterfaceDescriptioninterfaceRepresents a client-side HTTP request.Classes in org.springframework.http.client that implement HttpRequestModifier and TypeClassDescriptionclassAbstract base forClientHttpRequestthat makes sure that headers and body are not written multiple times.Methods in org.springframework.http.client with parameters of type HttpRequestModifier and TypeMethodDescriptionClientHttpRequestExecution.execute(HttpRequest request, byte[] body) Execute the request with the given request attributes and body, and return the response.ClientHttpRequestInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Intercept the given request, and return a response.
- 
Uses of HttpRequest in org.springframework.http.client.supportClasses in org.springframework.http.client.support that implement HttpRequestModifier and TypeClassDescriptionclassProvides a convenient implementation of theHttpRequestinterface that can be overridden to adapt the request.Methods in org.springframework.http.client.support that return HttpRequestMethods in org.springframework.http.client.support with parameters of type HttpRequestModifier and TypeMethodDescriptionBasicAuthenticationInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) Constructors in org.springframework.http.client.support with parameters of type HttpRequestModifierConstructorDescriptionHttpRequestWrapper(HttpRequest request) Create a newHttpRequestwrapping the given request object.
- 
Uses of HttpRequest in org.springframework.http.serverSubinterfaces of HttpRequest in org.springframework.http.serverModifier and TypeInterfaceDescriptioninterfaceRepresents a server-side HTTP request.Classes in org.springframework.http.server that implement HttpRequestModifier and TypeClassDescriptionclassServerHttpRequestimplementation that is based on aHttpServletRequest.
- 
Uses of HttpRequest in org.springframework.http.server.reactiveSubinterfaces of HttpRequest in org.springframework.http.server.reactiveModifier and TypeInterfaceDescriptioninterfaceRepresents a reactive server-side HTTP request.Classes in org.springframework.http.server.reactive that implement HttpRequestModifier and TypeClassDescriptionclassCommon base class forServerHttpRequestimplementations.classWraps anotherServerHttpRequestand delegates all methods to it.
- 
Uses of HttpRequest in org.springframework.mock.http.clientClasses in org.springframework.mock.http.client that implement HttpRequest
- 
Uses of HttpRequest in org.springframework.mock.http.server.reactiveClasses in org.springframework.mock.http.server.reactive that implement HttpRequestModifier and TypeClassDescriptionfinal classMock extension ofAbstractServerHttpRequestfor use in tests without an actual server.
- 
Uses of HttpRequest in org.springframework.web.clientMethods in org.springframework.web.client with parameters of type HttpRequestModifier and TypeMethodDescriptionRestClient.RequestHeadersSpec.ExchangeFunction.exchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) Exchange the given response into a typeT.voidRestClient.ResponseSpec.ErrorHandler.handle(HttpRequest request, ClientHttpResponse response) Handle the error in the given response.
- 
Uses of HttpRequest in org.springframework.web.multipart.supportClasses in org.springframework.web.multipart.support that implement HttpRequestModifier and TypeClassDescriptionclassServerHttpRequestimplementation that accesses one part of a multipart request.
- 
Uses of HttpRequest in org.springframework.web.reactive.function.clientMethods in org.springframework.web.reactive.function.client that return HttpRequestModifier and TypeMethodDescriptionWebClientResponseException.getRequest()Return the corresponding request.ClientResponse.request()Return the request associated with the response.Methods in org.springframework.web.reactive.function.client with parameters of type HttpRequestModifier and TypeMethodDescriptionstatic WebClientResponseExceptionWebClientResponseException.create(int statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset, @Nullable HttpRequest request) CreateWebClientResponseExceptionor an HTTP status specific subclass.static WebClientResponseExceptionWebClientResponseException.create(HttpStatusCode statusCode, String statusText, HttpHeaders headers, byte[] body, @Nullable Charset charset, @Nullable HttpRequest request) CreateWebClientResponseExceptionor an HTTP status specific subclass.ClientResponse.Builder.request(HttpRequest request) Set the request associated with the response.Constructors in org.springframework.web.reactive.function.client with parameters of type HttpRequestModifierConstructorDescriptionUnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, @Nullable Charset responseCharset, @Nullable HttpRequest request) Create a new instance of theUnknownHttpStatusCodeExceptionwith the given parameters.WebClientResponseException(int status, String reasonPhrase, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable Charset charset, @Nullable HttpRequest request) Constructor with response data only, and a default message.WebClientResponseException(String message, int statusCode, String statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable Charset charset, @Nullable HttpRequest request) Constructor with a prepared message.WebClientResponseException(String message, HttpStatusCode statusCode, String statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable Charset charset, @Nullable HttpRequest request) Constructor with a prepared message.WebClientResponseException(HttpStatusCode statusCode, String reasonPhrase, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable Charset charset, @Nullable HttpRequest request) Constructor with response data only, and a default message.
- 
Uses of HttpRequest in org.springframework.web.reactive.function.client.supportMethods in org.springframework.web.reactive.function.client.support that return HttpRequest
- 
Uses of HttpRequest in org.springframework.web.utilMethods in org.springframework.web.util with parameters of type HttpRequestModifier and TypeMethodDescriptionstatic booleanWebUtils.isSameOrigin(HttpRequest request) Check if the request is a same-origin one, based onOrigin,Host,Forwarded,X-Forwarded-Proto,X-Forwarded-HostandX-Forwarded-Portheaders.static booleanWebUtils.isValidOrigin(HttpRequest request, Collection<String> allowedOrigins) Check the given request origin against a list of allowed origins.