Class RawBody
- java.lang.Object
-
- io.joshworks.restclient.request.BaseRequest
-
- io.joshworks.restclient.request.body.RawBody
-
- All Implemented Interfaces:
Body
public class RawBody extends BaseRequest implements Body
-
-
Field Summary
-
Fields inherited from class io.joshworks.restclient.request.BaseRequest
clientRequest, httpRequest
-
-
Constructor Summary
Constructors Constructor Description RawBody(HttpRequest httpRequest, ClientRequest config)
-
Method Summary
Modifier and Type Method Description RawBodybody(byte[] body)org.apache.http.HttpEntitygetEntity()booleanimplicitContentType()-
Methods inherited from class io.joshworks.restclient.request.BaseRequest
asBinary, asBinaryAsync, asBinaryAsync, asJson, asJsonAsync, asJsonAsync, asObject, asObjectAsync, asObjectAsync, asString, asStringAsync, asStringAsync, getHttpRequest
-
-
-
-
Constructor Detail
-
RawBody
public RawBody(HttpRequest httpRequest, ClientRequest config)
-
-
Method Detail
-
body
public RawBody body(byte[] body)
-
implicitContentType
public boolean implicitContentType()
- Specified by:
implicitContentTypein interfaceBody
-
-