Package-level declarations

Types

Link copied to clipboard
class CloudflareKiller : Interceptor
Link copied to clipboard
class DdosGuardKiller(alwaysBypass: Boolean) : Interceptor
Link copied to clipboard
actual class WebViewResolver(val interceptUrl: Regex, val additionalUrls: List<Regex>, val userAgent: String?, val useOkhttp: Boolean, val script: String?, val scriptCallback: (String) -> Unit?, val timeout: Long) : Interceptor
expect class WebViewResolver(interceptUrl: Regex, additionalUrls: List<Regex> = emptyList(), userAgent: String? = USER_AGENT, useOkhttp: Boolean = true, script: String? = null, scriptCallback: (String) -> Unit? = null, timeout: Long = DEFAULT_TIMEOUT) : Interceptor

When used as Interceptor additionalUrls cannot be returned, use WebViewResolver(...).resolveUsingWebView(...)

Functions

Link copied to clipboard
fun OkHttpClient.Builder.addAdGuardDns(): OkHttpClient.Builder
Link copied to clipboard
fun OkHttpClient.Builder.addCloudFlareDns(): OkHttpClient.Builder
Link copied to clipboard
fun OkHttpClient.Builder.addDNSWatchDns(): OkHttpClient.Builder
Link copied to clipboard
fun OkHttpClient.Builder.addGenericDns(url: String, ips: List<String>): OkHttpClient.Builder

Based on https://github.com/tachiyomiorg/tachiyomi/blob/master/app/src/main/java/eu/kanade/tachiyomi/network/DohProviders.kt

Link copied to clipboard
fun OkHttpClient.Builder.addGoogleDns(): OkHttpClient.Builder
Link copied to clipboard
fun OkHttpClient.Builder.addQuad9Dns(): OkHttpClient.Builder
Link copied to clipboard
fun buildDefaultClient(context: Context): OkHttpClient
Link copied to clipboard
fun getHeaders(headers: Map<String, String>, cookie: Map<String, String>): Headers

Set headers Set cookies Default headers Default Cookies TODO REMOVE AND REPLACE WITH NICEHTTP

Link copied to clipboard
fun Requests.initClient(context: Context)
Link copied to clipboard
Link copied to clipboard