co.cask.common.http
Class HttpRequest
java.lang.Object
co.cask.common.http.HttpRequest
public class HttpRequest
- extends Object
Represents an HTTP request to be executed by HttpRequests.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpRequest
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)
get
public static HttpRequest.Builder get(URL url)
post
public static HttpRequest.Builder post(URL url)
delete
public static HttpRequest.Builder delete(URL url)
put
public static HttpRequest.Builder put(URL url)
builder
public static HttpRequest.Builder builder(HttpMethod method,
URL url)
builder
public static HttpRequest.Builder builder(HttpRequest request)
getMethod
public HttpMethod getMethod()
getURL
public URL getURL()
getHeaders
@Nullable
public com.google.common.collect.Multimap<String,String> getHeaders()
getBody
@Nullable
public com.google.common.io.InputSupplier<? extends InputStream> getBody()
getBodyLength
@Nullable
public Long getBodyLength()
Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.