Scoop API

scoop:scoop.http:0.1.0

Companion

object Companion

source · line 17
public
public companion

Factories for explicitly owned client/server codec instances.

function upgradedServer

source · line 42
public
public fun upgradedServer(requestMethod: List<Byte>, settingsPayload: List<Byte>, options: Http2ReceiveOptions = Http2ReceiveOptions(), limits: Http2Limits = Http2Limits(), settings: Http2Settings = Http2Settings()): Http2Session

Creates a server session after the complete HTTP/1 upgrade request body, applying the decoded peer SETTINGS payload.

function server

source · line 27
public
public fun server(options: Http2ReceiveOptions = Http2ReceiveOptions(), limits: Http2Limits = Http2Limits(), settings: Http2Settings = Http2Settings()): Http2Session

Creates a server codec with the selected receive options and local limits.

function upgradedClient

source · line 34
public
public fun upgradedClient(requestMethod: List<Byte>, settings: Http2Settings = Http2Settings(), options: Http2ReceiveOptions = Http2ReceiveOptions(), limits: Http2Limits = Http2Limits()): Http2Session

Creates a client session after an accepted h2c upgrade, using exactly the SETTINGS sent in the request. Stream 1 represents that completed HTTP/1 request.

function client

source · line 21
public
public fun client(options: Http2ReceiveOptions = Http2ReceiveOptions(), limits: Http2Limits = Http2Limits(), settings: Http2Settings = Http2Settings()): Http2Session

Creates a client codec with the selected receive options and local limits.