public abstract class LightHttpBody
extends java.lang.Object
| Constructor and Description |
|---|
LightHttpBody() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
contentLength() |
abstract java.lang.String |
contentType() |
static LightHttpBody |
create(byte[] body,
java.lang.String contentType) |
static LightHttpBody |
create(java.lang.String body,
java.lang.String contentType) |
abstract void |
writeTo(java.io.OutputStream output) |
public static LightHttpBody create(java.lang.String body, java.lang.String contentType)
public static LightHttpBody create(byte[] body, java.lang.String contentType)
public abstract java.lang.String contentType()
public abstract int contentLength()
public abstract void writeTo(java.io.OutputStream output)
throws java.io.IOException
java.io.IOException