Package | Description |
---|---|
org.springframework.mock.http.server.reactive |
Mock implementations of reactive HTTP server contracts.
|
Modifier and Type | Method and Description |
---|---|
MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.BodyBuilder.contentLength(long contentLength)
Set the length of the body in bytes, as specified by the
Content-Length header. |
MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.BodyBuilder.contentType(MediaType contentType)
Set the media type of the body, as specified
by the
Content-Type header. |
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.method(HttpMethod method,
String urlTemplate,
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 . |
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.patch(String urlTemplate,
Object... uriVars)
HTTP PATCH variant.
|
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.post(String urlTemplate,
Object... uriVars)
HTTP POST variant.
|
static MockServerHttpRequest.BodyBuilder |
MockServerHttpRequest.put(String urlTemplate,
Object... uriVars)
HTTP PUT variant.
|