mirror of
https://github.com/tachiyomiorg/extensions-lib.git
synced 2024-11-16 16:29:19 +01:00
Requests: add GET(HttpUrl) overload (#7)
This commit is contained in:
parent
c6f42599fe
commit
1a81ff5cc2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user