public interface WebClient
Use static factory methods create()
or create(String)
,
or builder()
to prepare an instance.
For examples with a response body see:
For examples with a request body see:
Modifier and Type | Interface and Description |
---|---|
static interface |
WebClient.Builder
A mutable builder for creating a
WebClient . |
static interface |
WebClient.RequestBodySpec
Contract for specifying request headers and body leading up to the exchange.
|
static interface |
WebClient.RequestBodyUriSpec
Contract for specifying request headers, body and URI for a request.
|
static interface |
WebClient.RequestHeadersSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers leading up to the exchange.
|
static interface |
WebClient.RequestHeadersUriSpec<S extends WebClient.RequestHeadersSpec<S>>
Contract for specifying request headers and URI for a request.
|
static interface |
WebClient.ResponseSpec
Contract for specifying response operations following the exchange.
|
static interface |
WebClient.UriSpec<S extends WebClient.RequestHeadersSpec<?>>
Contract for specifying the URI for a request.
|
Modifier and Type | Method and Description |
---|---|
static WebClient.Builder |
builder()
Obtain a
WebClient builder. |
static WebClient |
create()
Create a new
WebClient with Reactor Netty by default. |
static WebClient |
create(String baseUrl)
Variant of
create() that accepts a default base URL. |
WebClient.RequestHeadersUriSpec<?> |
delete()
Start building an HTTP DELETE request.
|
WebClient.RequestHeadersUriSpec<?> |
get()
Start building an HTTP GET request.
|
WebClient.RequestHeadersUriSpec<?> |
head()
Start building an HTTP HEAD request.
|
WebClient.RequestBodyUriSpec |
method(HttpMethod method)
Start building a request for the given
HttpMethod . |
WebClient.Builder |
mutate()
Return a builder to create a new
WebClient whose settings are
replicated from the current WebClient . |
WebClient.RequestHeadersUriSpec<?> |
options()
Start building an HTTP OPTIONS request.
|
WebClient.RequestBodyUriSpec |
patch()
Start building an HTTP PATCH request.
|
WebClient.RequestBodyUriSpec |
post()
Start building an HTTP POST request.
|
WebClient.RequestBodyUriSpec |
put()
Start building an HTTP PUT request.
|
WebClient.RequestHeadersUriSpec<?> get()
WebClient.RequestHeadersUriSpec<?> head()
WebClient.RequestBodyUriSpec post()
WebClient.RequestBodyUriSpec put()
WebClient.RequestBodyUriSpec patch()
WebClient.RequestHeadersUriSpec<?> delete()
WebClient.RequestHeadersUriSpec<?> options()
WebClient.RequestBodyUriSpec method(HttpMethod method)
HttpMethod
.WebClient.Builder mutate()
WebClient
whose settings are
replicated from the current WebClient
.static WebClient create()
WebClient
with Reactor Netty by default.create(String)
,
builder()
static WebClient create(String baseUrl)
create()
that accepts a default base URL. For more
details see Builder.baseUrl(String)
.baseUrl
- the base URI for all requestsbuilder()
static WebClient.Builder builder()
WebClient
builder.