public class HttpRequestWithBody extends HttpRequest
body, urlhttpRequest, UTF_8| Constructor and Description |
|---|
HttpRequestWithBody(HttpMethod method,
String url) |
getBody, getHeaders, getHttpMethod, getUrl, queryStringasBinary, asBinaryAsync, asBinaryAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObjectAsync, asObjectAsync, asString, asStringAsync, asStringAsync, getHttpRequestpublic HttpRequestWithBody(HttpMethod method, String url)
public HttpRequestWithBody routeParam(String name, String value)
routeParam in class HttpRequestpublic HttpRequestWithBody header(String name, String value)
header in class HttpRequestpublic HttpRequestWithBody headers(Map<String,String> headers)
headers in class HttpRequestpublic HttpRequestWithBody basicAuth(String username, String password)
basicAuth in class HttpRequestpublic HttpRequestWithBody queryString(Map<String,Object> parameters)
queryString in class HttpRequestpublic HttpRequestWithBody queryString(String name, Object value)
queryString in class HttpRequestpublic MultipartBody field(String name, Collection<?> value)
public MultipartBody field(String name, Object value)
public MultipartBody field(String name, File file)
public MultipartBody field(String name, Object value, String contentType)
public MultipartBody field(String name, File file, String contentType)
public MultipartBody fields(Map<String,Object> parameters)
public MultipartBody field(String name, InputStream stream, org.apache.http.entity.ContentType contentType, String fileName)
public MultipartBody field(String name, InputStream stream, String fileName)
public RequestBodyEntity body(JsonNode body)
public RequestBodyEntity body(String body)
public RequestBodyEntity body(Object body)
public RawBody body(byte[] body)
public RequestBodyEntity body(org.json.JSONObject body)
body - raw org.JSONObjectpublic RequestBodyEntity body(org.json.JSONArray body)
body - raw org.JSONArrayCopyright © 2016. All rights reserved.