Package-level declarations

Useful methods for creating http requests and manipulate responses.

Types

Link copied to clipboard

Exception that handles HTTP codes considered not successful by OkHttp. Use it to have a standardized error message in the app across the extensions.

Link copied to clipboard
class JavaScriptEngine(context: Context)

Util for evaluating JavaScript in sources.

Link copied to clipboard
class NetworkHelper(context: Context)

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun Call.await(): Response
Link copied to clipboard
suspend fun Call.awaitSuccess(): Response
Link copied to clipboard
fun GET(url: String, headers: Headers = DEFAULT_HEADERS, cache: CacheControl = DEFAULT_CACHE_CONTROL): Request
fun GET(url: HttpUrl, headers: Headers = DEFAULT_HEADERS, cache: CacheControl = DEFAULT_CACHE_CONTROL): Request
Link copied to clipboard
fun POST(url: String, headers: Headers = DEFAULT_HEADERS, body: RequestBody = DEFAULT_BODY, cache: CacheControl = DEFAULT_CACHE_CONTROL): Request