Package com.rnett.krosstalk.client.plugin

APIs for defining client plugins. For an example, see the Krosstalk Ktor client.

For instructions on writing plugins, see WRITING_PLUGINS.md.

Types

Link copied to clipboard
data class AppliedClientScope<T : ClientScope<D>, D>(scope: T, data: D)
Link copied to clipboard
interface ClientHandler<C : ClientScope<*>>

A Krosstalk client handler. Capable of sending krosstalk requests.

Link copied to clipboard
class InternalKrosstalkResponse(statusCode: Int, headers: Headers, body: ByteArray, stringBody: () -> String?)

The response to a Krosstalk request.

Functions

Link copied to clipboard
@JvmName(name = "clientScopesAsType")
fun <C : ClientScope<*>, K : Krosstalk, KrosstalkClient<C>> K.scopesAsType(scopes: Iterable<Scope>): List<C>

Properties

Link copied to clipboard
val <C : ClientScope<*>, K : Krosstalk, KrosstalkClient<C>> K.clientScopes: List<C>