Requests: add GET(HttpUrl) overload (#7)

This commit is contained in:
stevenyomi 2022-09-29 05:36:16 +08:00 committed by GitHub
parent c6f42599fe
commit 1a81ff5cc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@ package eu.kanade.tachiyomi.network
import okhttp3.CacheControl
import okhttp3.Headers
import okhttp3.HttpUrl
import okhttp3.Request
import okhttp3.RequestBody
@ -16,6 +17,16 @@ fun GET(url: String,
throw Exception("Stub!")
}
/**
* @since extensions-lib 1.4
*/
fun GET(url: HttpUrl,
headers: Headers = DEFAULT_HEADERS,
cache: CacheControl = DEFAULT_CACHE_CONTROL): Request {
throw Exception("Stub!")
}
fun POST(url: String,
headers: Headers = DEFAULT_HEADERS,
body: RequestBody = DEFAULT_BODY,