Scoop API

scoop:scoop.http.server:0.1.0

HttpContext

class HttpContext

source · line 8
public
public class HttpContext internal constructor(
    /** The original request and its single-consumer body. */
    public val request: HttpRequest,
    internal val output: ResponseOutput,
    /** The identifier supplied by the server or the caller of single-request execution. */
    public val requestId: String,
    /** The structured job that owns this request's work. */
    public val requestJob: Job,
    /** Immutable socket and negotiated protocol facts for this request. */
    public val connection: HttpConnectionInfo,
    private val deadline: RequestDeadline
)

One request's explicit context; it is also bound by exact type while its pipeline executes.

property request

source · line 10
public
public val request: HttpRequest

get: public read-only

The original request and its single-consumer body.

property requestJob

source · line 15
public
public val requestJob: Job

get: public read-only

The structured job that owns this request's work.

property response

source · line 21
public
public val response: HttpResponse

get: public read-only

Pending response mutations and submitted response state.

property requestId

source · line 13
public
public val requestId: String

get: public read-only

The identifier supplied by the server or the caller of single-request execution.

property connection

source · line 17
public
public val connection: HttpConnectionInfo

get: public read-only

Immutable socket and negotiated protocol facts for this request.