public interface RequestSpec
Modifier and Type | Interface and Description |
---|---|
static interface |
RequestSpec.Body |
Modifier and Type | Method and Description |
---|---|
RequestSpec |
body(Action<? super RequestSpec.Body> action) |
RequestSpec.Body |
getBody() |
MutableHeaders |
getHeaders() |
HttpUrlSpec |
getUrl() |
RequestSpec |
method(String method)
Set the HTTP verb to use.
|
RequestSpec |
url(Action<? super HttpUrlSpec> action) |
MutableHeaders getHeaders()
MutableHeaders
that can be used to configure the headers that will be used for the request.RequestSpec method(String method)
method
- which HTTP verb to useHttpUrlSpec getUrl()
RequestSpec url(Action<? super HttpUrlSpec> action) throws Exception
Exception
RequestSpec.Body getBody()
RequestSpec body(Action<? super RequestSpec.Body> action) throws Exception
Exception