public final class HttpRequestIntent extends Base
HttpRequest
.Modifier and Type | Method and Description |
---|---|
HttpRequestBody |
getBody() |
HttpHeaders |
getHeaders() |
HttpMethod |
getHttpMethod() |
String |
getPath() |
static HttpRequestIntent |
of(HttpMethod httpMethod,
String path) |
static HttpRequestIntent |
of(HttpMethod httpMethod,
String path,
File body,
String contentType) |
static HttpRequestIntent |
of(HttpMethod httpMethod,
String path,
HttpHeaders headers,
HttpRequestBody body) |
static HttpRequestIntent |
of(HttpMethod httpMethod,
String path,
String body) |
HttpRequestIntent |
plusHeader(String name,
String value) |
HttpRequestIntent |
prefixPath(String prefix) |
HttpRequest |
toHttpRequest(String baseUrl) |
HttpRequestIntent |
withHeaders(HttpHeaders headers) |
HttpRequestIntent |
withPath(String path) |
public HttpHeaders getHeaders()
public HttpMethod getHttpMethod()
public String getPath()
@Nullable public HttpRequestBody getBody()
public HttpRequestIntent withPath(String path)
public HttpRequestIntent withHeaders(HttpHeaders headers)
public HttpRequestIntent plusHeader(String name, String value)
public HttpRequestIntent prefixPath(String prefix)
public HttpRequest toHttpRequest(String baseUrl)
public static HttpRequestIntent of(HttpMethod httpMethod, String path)
public static HttpRequestIntent of(HttpMethod httpMethod, String path, HttpHeaders headers, @Nullable HttpRequestBody body)
public static HttpRequestIntent of(HttpMethod httpMethod, String path, String body)
public static HttpRequestIntent of(HttpMethod httpMethod, String path, File body, String contentType)