public class HttpRequest extends Object
HttpRequests.| Modifier and Type | Class and Description |
|---|---|
static class |
HttpRequest.Builder
Builder for
HttpRequest. |
| Constructor and Description |
|---|
HttpRequest(HttpMethod method,
URL url,
com.google.common.collect.Multimap<String,String> headers,
com.google.common.io.InputSupplier<? extends InputStream> body,
Long bodyLength) |
| Modifier and Type | Method and Description |
|---|---|
static HttpRequest.Builder |
builder(HttpMethod method,
URL url) |
static HttpRequest.Builder |
builder(HttpRequest request) |
static HttpRequest.Builder |
delete(URL url) |
static HttpRequest.Builder |
get(URL url) |
com.google.common.io.InputSupplier<? extends InputStream> |
getBody() |
Long |
getBodyLength() |
com.google.common.collect.Multimap<String,String> |
getHeaders() |
HttpMethod |
getMethod() |
URL |
getURL() |
static HttpRequest.Builder |
post(URL url) |
static HttpRequest.Builder |
put(URL url) |
public HttpRequest(HttpMethod method, URL url, @Nullable com.google.common.collect.Multimap<String,String> headers, @Nullable com.google.common.io.InputSupplier<? extends InputStream> body, @Nullable Long bodyLength)
public static HttpRequest.Builder get(URL url)
public static HttpRequest.Builder post(URL url)
public static HttpRequest.Builder delete(URL url)
public static HttpRequest.Builder put(URL url)
public static HttpRequest.Builder builder(HttpMethod method, URL url)
public static HttpRequest.Builder builder(HttpRequest request)
public HttpMethod getMethod()
public URL getURL()
@Nullable public com.google.common.io.InputSupplier<? extends InputStream> getBody()
Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.