scoop:scoop.http.server:0.1.0
src/application_http1.scoop
Selected production source · src/application_http1.scoop
1
package scoop.http.server3
import scoop.http.asyncio.AsyncHttp1Connection4
import scoop.http.asyncio.Http1IncomingRequest6
/**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. Protocol10
* 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
*/13
public suspend fun HttpApplication.executeHttp1(14
connection: AsyncHttp1Connection,15
incoming: Http1IncomingRequest,16
info: HttpConnectionInfo,17
requestId: String,18
options: HttpRequestOptions = HttpRequestOptions.Default19
) {20
executeHttp1Request(this, Http1ResponseOutput(connection, incoming), requestId, info, options)21
}