Package kong.unirest.core
Class HttpRequestNoBody
- java.lang.Object
-
- kong.unirest.core.BaseRequest<GetRequest>
-
- kong.unirest.core.HttpRequestNoBody
-
- All Implemented Interfaces:
GetRequest
,HttpRequest<GetRequest>
class HttpRequestNoBody extends BaseRequest<GetRequest> implements GetRequest
-
-
Field Summary
-
Fields inherited from class kong.unirest.core.BaseRequest
config, headers, method, url
-
-
Constructor Summary
Constructors Constructor Description HttpRequestNoBody(Config config, HttpMethod method, java.lang.String url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<Body>
getBody()
-
Methods inherited from class kong.unirest.core.BaseRequest
accept, asBytes, asBytesAsync, asBytesAsync, asEmpty, asEmptyAsync, asEmptyAsync, asFile, asFileAsync, asFileAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObject, asObject, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asPaged, asString, asStringAsync, asStringAsync, basicAuth, connectTimeout, cookie, cookie, cookie, downloadMonitor, equals, getConnectTimeout, getCreationTime, getHeaders, getHttpMethod, getObjectMapper, getPath, getUrl, getVersion, hashCode, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, responseEncoding, routeParam, routeParam, thenConsume, thenConsumeAsync, toSummary, version, withObjectMapper
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface kong.unirest.core.HttpRequest
accept, asBytes, asBytesAsync, asBytesAsync, asEmpty, asEmptyAsync, asEmptyAsync, asFile, asFileAsync, asFileAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObject, asObject, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asObjectAsync, asPaged, asString, asStringAsync, asStringAsync, basicAuth, connectTimeout, cookie, cookie, cookie, downloadMonitor, getConnectTimeout, getCreationTime, getHeaders, getHttpMethod, getUrl, getVersion, header, headerReplace, headers, headersReplace, queryString, queryString, queryString, responseEncoding, routeParam, routeParam, thenConsume, thenConsumeAsync, toSummary, version, withObjectMapper
-
-
-
-
Constructor Detail
-
HttpRequestNoBody
HttpRequestNoBody(Config config, HttpMethod method, java.lang.String url)
-
-
Method Detail
-
getBody
public java.util.Optional<Body> getBody()
- Specified by:
getBody
in interfaceHttpRequest<GetRequest>
- Returns:
- if the request has a body it will be here.
-
-