HttpRequestResult
class HttpRequestResult(val url: String, val method: String, val statusCode: Int, val content: ByteArray, val headers: Map<String, List<String>>)
Stores result of a HttpRequest. A safer alternative to HttpResponse.
Parameters
url
URL of the queried resource.
method
HTTP method of the request.
statusCode
HTTP status code of the response. Might be set to -1 by internal libGDX implementation or if the status could not be determined.
content
response body stored as raw bytes.
headers
HTTP header values of the response. Might be empty.
Constructors
Properties
Link copied to clipboard
Returns a new instance of ByteArrayInputStream with raw response bytes each time the getter is invoked.
Link copied to clipboard
Returns cached representation of the response stored as a string with default encoding.
Link copied to clipboard