Scoop API

scoop:scoop.http.server:0.1.0

src/application_http1.scoop

Selected production source · src/application_http1.scoop

1package scoop.http.server
3import scoop.http.asyncio.AsyncHttp1Connection
4import scoop.http.asyncio.Http1IncomingRequest
6/**
7 * Executes the connection's current unread request in its own structured request scope.
8 * The caller owns the connection, head reception, request identifiers and loop fairness.
9 * Returns after response execution, request cleanup and completion observation. Protocol
10 * failure or unread input may close the borrowed connection; successful calls may reuse it.
11 * Transport upgrades require HttpServer's ownership path and are rejected before commit.
12 */
13public suspend fun HttpApplication.executeHttp1(
14 connection: AsyncHttp1Connection,
15 incoming: Http1IncomingRequest,
16 info: HttpConnectionInfo,
17 requestId: String,
18 options: HttpRequestOptions = HttpRequestOptions.Default
19) {
20 executeHttp1Request(this, Http1ResponseOutput(connection, incoming), requestId, info, options)