-
public abstract class TdsHttp.RequestBody
-
-
Method Summary
Modifier and Type Method Description abstract String
contentType()
long
contentLength()
abstract void
writeTo(OutputStream out)
static TdsHttp.RequestBody
createJsonBody(String content)
static TdsHttp.RequestBody
createProtoBuffBody(Array<byte> bytes)
static TdsHttp.RequestBody
create(String contentType, String content)
static TdsHttp.RequestBody
create(String contentType, Array<byte> content)
static TdsHttp.RequestBody
create(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)
-
-
-
-