| java.lang.Object | |
| ↳ | chan.http.HttpResponse |
HTTP response holder.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Decodes and returns response as | |||||||||||
Returns raw response as string. | |||||||||||
Decodes and returns response as | |||||||||||
Decodes and returns response as | |||||||||||
Decodes and returns response as string. | |||||||||||
Sets encoding for this instance. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructor for HttpResponse.
| Parameters | |
|---|---|
bytes |
byte:
Byte array of data.
|
Decodes and returns response as Bitmap.
| Returns | |
|---|---|
Bitmap |
Bitmap response or null if response is not bitmap.
|
Returns raw response as string.
| Returns | |
|---|---|
byte[] |
Byte array response. |
Decodes and returns response as JSONArray.
| Returns | |
|---|---|
JSONArray |
JSON array response or null if response is not JSON array.
|
Decodes and returns response as JSONObject.
| Returns | |
|---|---|
JSONObject |
JSON object response or null if response is not JSON object.
|
Decodes and returns response as string.
| Returns | |
|---|---|
String |
String response. |
Sets encoding for this instance. UTF-8 is used by default.
| Parameters | |
|---|---|
charsetName |
String
|