Package-level declarations

Types

Link copied to clipboard
interface Backend
Link copied to clipboard
Link copied to clipboard
data class ClientSettings(var timeout: UInt, var redirectLimit: UInt)
Link copied to clipboard
interface Disposable
Link copied to clipboard
typealias FfiConverterTypeHeaders = FfiConverterMapStringString
Link copied to clipboard
typealias FfiConverterTypeViaductUrl = FfiConverterString
Link copied to clipboard
typealias Headers = Map<String, String>

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Link copied to clipboard
Link copied to clipboard
enum Method : Enum<Method>

HTTP Methods.

Link copied to clipboard
data class Request(var method: Method, var url: ViaductUrl, var headers: Headers, var body: ByteArray?)
Link copied to clipboard
data class Response(var requestMethod: Method, var url: ViaductUrl, var status: UShort, var headers: Headers, var body: ByteArray)

A response from the server.

Link copied to clipboard
Link copied to clipboard
typealias ViaductUrl = String

Typealias from the type name used in the UDL file to the builtin type. This is needed because the UDL type name is used in function/method signatures. It's also what we have an external type that references a custom type.

Functions

Link copied to clipboard

Allow non-HTTPS requests to the emulator loopback URL

Link copied to clipboard
fun initBackend(backend: Backend)
Link copied to clipboard
fun uniffiForeignFutureHandleCount(): <Error class: unknown class>