-
public abstract class TdsHttp.RequestBody
-
-
Method Summary
Modifier and Type Method Description abstract StringcontentType()longcontentLength()abstract voidwriteTo(OutputStream out)static TdsHttp.RequestBodycreateJsonBody(String content)static TdsHttp.RequestBodycreateProtoBuffBody(Array<byte> bytes)static TdsHttp.RequestBodycreate(String contentType, String content)static TdsHttp.RequestBodycreate(String contentType, Array<byte> content)static TdsHttp.RequestBodycreate(String contentType, File file)-
-
Method Detail
-
contentType
abstract String contentType()
-
contentLength
long contentLength()
-
writeTo
abstract void writeTo(OutputStream out)
-
createJsonBody
static TdsHttp.RequestBody createJsonBody(String content)
-
createProtoBuffBody
static TdsHttp.RequestBody createProtoBuffBody(Array<byte> bytes)
-
create
static TdsHttp.RequestBody create(String contentType, String content)
-
create
static TdsHttp.RequestBody create(String contentType, Array<byte> content)
-
create
static TdsHttp.RequestBody create(String contentType, File file)
-
-
-
-