CronetResponse

class CronetResponse<T>


A helper object encompassing the headers, body and metadata of a response to Cronet URL requests.

Parameters
<T>

the response body type

Summary

Public functions

Boolean
equals(o: Any!)
T?

Returns the full body of the response, after performing a user-defined deserialization.

UrlResponseInfo!

Returns the headers and other metadata of the response.

Int

Public functions

equals

fun equals(o: Any!): Boolean

getResponseBody

fun getResponseBody(): T?

Returns the full body of the response, after performing a user-defined deserialization.

getUrlResponseInfo

fun getUrlResponseInfo(): UrlResponseInfo!

Returns the headers and other metadata of the response.

hashCode

fun hashCode(): Int