Uses of Interface
org.springframework.http.client.ClientHttpRequest
Package
Description
Contains an abstraction over client-side HTTP.
This package provides support for client HTTP
Observation
.This package provides generic HTTP support classes,
to be used by higher-level classes like RestTemplate.
Mock implementations of client-side HTTP abstractions.
Contains client-side REST testing support.
Contains built-in
ResponseCreator
implementations.Core package of the client-side web support.
-
Uses of ClientHttpRequest in org.springframework.http.client
Modifier and TypeClassDescriptionclass
Abstract base forClientHttpRequest
that makes sure that headers and body are not written multiple times.Modifier and TypeMethodDescriptionfinal 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) JdkClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) JettyClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) OkHttp3ClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Deprecated, for removal: This API element is subject to removal in a future version.ReactorClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Modifier and TypeMethodDescriptionvoid
ClientHttpRequestInitializer.initialize
(ClientHttpRequest request) Initialize the given client HTTP request. -
Uses of ClientHttpRequest in org.springframework.http.client.observation
-
Uses of ClientHttpRequest in org.springframework.http.client.support
Modifier and TypeMethodDescriptionprotected ClientHttpRequest
HttpAccessor.createRequest
(URI url, HttpMethod method) Create a newClientHttpRequest
via this template'sClientHttpRequestFactory
. -
Uses of ClientHttpRequest in org.springframework.mock.http.client
-
Uses of ClientHttpRequest in org.springframework.test.web.client
Modifier and TypeMethodDescriptionMockMvcClientHttpRequestFactory.createRequest
(URI uri, HttpMethod httpMethod) Modifier and TypeMethodDescriptionprotected List<ClientHttpRequest>
AbstractRequestExpectationManager.getRequests()
Return a read-only list of requests executed so far.Modifier and TypeMethodDescriptionDefaultRequestExpectation.createResponse
(ClientHttpRequest request) Note that as of 5.0.3, the creation of the response, which may block intentionally, is separated from request count tracking, and this method no longer increments the count transparently.ResponseCreator.createResponse
(ClientHttpRequest request) Create a response for the given request.protected AssertionError
AbstractRequestExpectationManager.createUnexpectedRequestError
(ClientHttpRequest request) Return anAssertionError
that a subclass can raise for an unexpected request.AbstractRequestExpectationManager.RequestExpectationGroup.findExpectation
(ClientHttpRequest request) Return a matching expectation, ornull
if none match.void
DefaultRequestExpectation.match
(ClientHttpRequest request) void
RequestMatcher.match
(ClientHttpRequest request) Match the given request against specific expectations.protected RequestExpectation
AbstractRequestExpectationManager.matchRequest
(ClientHttpRequest request) As of 5.0.3 subclasses should implement this method instead of#validateRequestInternal(ClientHttpRequest)
in order to match the request to an expectation, leaving the call to create the response as a separate step (to be invoked by this class).protected RequestExpectation
SimpleRequestExpectationManager.matchRequest
(ClientHttpRequest request) UnorderedRequestExpectationManager.matchRequest
(ClientHttpRequest request) AbstractRequestExpectationManager.validateRequest
(ClientHttpRequest request) RequestExpectationManager.validateRequest
(ClientHttpRequest request) Validate the given actual request against the declared expectations. -
Uses of ClientHttpRequest in org.springframework.test.web.client.response
Modifier and TypeMethodDescriptionDefaultResponseCreator.createResponse
(ClientHttpRequest request) ExecutingResponseCreator.createResponse
(ClientHttpRequest request) -
Uses of ClientHttpRequest in org.springframework.web.client
Modifier and TypeMethodDescriptionRestClient.RequestHeadersSpec.httpRequest
(Consumer<ClientHttpRequest> requestConsumer) Callback for access to theClientHttpRequest
that in turn provides access to the native request of the underlying HTTP library.