Package-level declarations

Types

Link copied to clipboard
external interface AbortController : JsAny
Link copied to clipboard
external interface AbortSignal : EventTarget
Link copied to clipboard
Link copied to clipboard
external interface ArrayBuffer : JsAny
Link copied to clipboard
external interface ArrayBufferConstructor : JsAny
Link copied to clipboard
Link copied to clipboard
external interface ArrayBufferView : JsAny
Link copied to clipboard
external interface ArrayLike<T : JsAny?> : JsAny
Link copied to clipboard
class BatchingHttpInterceptor @JvmOverloads constructor(batchIntervalMillis: Long = 10, maxBatchSize: Int = 10, exposeErrorBody: Boolean = false) : HttpInterceptor

An HttpInterceptor that batches HTTP queries to execute multiple at once. This reduces the number of HTTP round trips at the price of increased latency as every request in the batch is now as slow as the slowest one. Some servers might have a per-HTTP-call cache making it faster to resolve 1 big array of n queries compared to resolving the n queries separately.

Link copied to clipboard
external interface Blob : JsAny
Link copied to clipboard
external interface Body : JsAny
Link copied to clipboard
external interface Event : JsAny
Link copied to clipboard
external interface EventListener : JsAny
Link copied to clipboard
external interface EventListenerObject : JsAny
Link copied to clipboard
external interface EventListenerOptions : JsAny
Link copied to clipboard
external interface EventTarget : JsAny
Link copied to clipboard
external interface FormData : JsAny
Link copied to clipboard
external interface Headers : JsAny
Link copied to clipboard
Link copied to clipboard
class HttpCall(engine: HttpEngine, method: HttpMethod, url: String)
Link copied to clipboard
interface HttpEngine : Closeable

A wrapper around platform specific engines

Link copied to clipboard
class HttpInfo constructor(val startMillis: Long, val endMillis: Long, val statusCode: Int, val headers: List<HttpHeader>) : ExecutionContext.Element
Link copied to clipboard
interface HttpInterceptor
Link copied to clipboard
Link copied to clipboard
class LoggingInterceptor(level: LoggingInterceptor.Level, log: (String) -> Unit = { println(it) }) : HttpInterceptor

An interceptor that logs requests and responses.

Link copied to clipboard
external interface PipeOptions : JsAny
Link copied to clipboard
external interface ReadableStream<R : JsAny?> : JsAny
Link copied to clipboard
external interface ReadableStreamBYOBReader : JsAny
Link copied to clipboard
external interface ReadableStreamDefaultReader<R : JsAny?> : JsAny
Link copied to clipboard
external interface ReadableStreamReadResult<T : JsAny?> : JsAny
Link copied to clipboard
external interface Request : Body
Link copied to clipboard
external interface RequestInit : JsAny
Link copied to clipboard
external interface Response : Body
Link copied to clipboard
external interface Uint8Array : JsAny
Link copied to clipboard
external interface Uint8ArrayConstructor : JsAny
Link copied to clipboard
external interface WritableStream<W : JsAny?> : JsAny
Link copied to clipboard
external interface WritableStreamDefaultWriter<W : JsAny?> : JsAny

Functions

Link copied to clipboard
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
fun DefaultHttpEngine(timeoutMillis: Long, nsUrlSessionConfiguration: <Error class: unknown class>): <Error class: unknown class>
expect fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
fun DefaultHttpEngine(connectTimeoutMillis: Long, readTimeoutMillis: Long): <Error class: unknown class>
fun DefaultHttpEngine(httpCallFactory: <Error class: unknown class>): <Error class: unknown class>
fun DefaultHttpEngine(okHttpClient: <Error class: unknown class>): <Error class: unknown class>
fun DefaultHttpEngine(httpCallFactory: () -> <Error class: unknown class>): <Error class: unknown class>
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
fun DefaultHttpEngine(connectTimeoutMillis: Long, readTimeoutMillis: Long): <Error class: unknown class>
actual fun DefaultHttpEngine(timeoutMillis: Long): HttpEngine
Link copied to clipboard
external fun fetch(input: String, init: RequestInit? = definedExternally): Promise<Response>
Link copied to clipboard
operator fun <T : JsAny?> ArrayLike<T>.get(index: Int): T
operator fun Uint8Array.get(index: Int): Byte
Link copied to clipboard
inline operator fun EventListener.invoke(evt: Event)
Link copied to clipboard
Link copied to clipboard
operator fun <T : JsAny?> ArrayLike<T>.set(index: Int, value: T)
operator fun Uint8Array.set(index: Int, value: Byte)