Scoop API

scoop:scoop.http.server:0.1.0

HttpRequestCompletion

class HttpRequestCompletion

source · line 33
public
public class HttpRequestCompletion internal constructor(
    /** The request identifier supplied by the server or the application caller. */
    public val requestId: String,
    /** The selected route, absent for an unmatched fallback or special target. */
    public val route: HttpRouteInfo?,
    /** The original method token. */
    public val method: String,
    /** The submitted final status, absent if no response was submitted. */
    public val status: UInt?,
    /** Time through response completion and request cleanup. */
    public val elapsed: Duration,
    /** Body bytes received after protocol framing removal. */
    public val receivedBytes: Long,
    /** Body bytes delivered after any installed content decoding. */
    public val deliveredBytes: Long,
    /** Response content accepted from the producer. */
    public val responseBytes: Long,
    /** Response content accepted by HTTP, excluding framing and TLS overhead. */
    public val encodedResponseBytes: Long,
    /** The final pipeline outcome, independent of an already-sent success status. */
    public val outcome: HttpRequestOutcome,
    /** The terminal failure when the pipeline did not complete normally. */
    public val failure: Throwable?
)

Completion facts detached from the mutable request and its resource lifetimes.

property failure

source · line 55
public
public val failure: Throwable?

get: public read-only

The terminal failure when the pipeline did not complete normally.

property method

source · line 39
public
public val method: String

get: public read-only

The original method token.

property encodedResponseBytes

source · line 51
public
public val encodedResponseBytes: Long

get: public read-only

Response content accepted by HTTP, excluding framing and TLS overhead.

property outcome

source · line 53
public
public val outcome: HttpRequestOutcome

get: public read-only

The final pipeline outcome, independent of an already-sent success status.

property requestId

source · line 35
public
public val requestId: String

get: public read-only

The request identifier supplied by the server or the application caller.

property elapsed

source · line 43
public
public val elapsed: Duration

get: public read-only

Time through response completion and request cleanup.

property status

source · line 41
public
public val status: UInt?

get: public read-only

The submitted final status, absent if no response was submitted.

property responseBytes

source · line 49
public
public val responseBytes: Long

get: public read-only

Response content accepted from the producer.

property route

source · line 37
public
public val route: HttpRouteInfo?

get: public read-only

The selected route, absent for an unmatched fallback or special target.

property deliveredBytes

source · line 47
public
public val deliveredBytes: Long

get: public read-only

Body bytes delivered after any installed content decoding.

property receivedBytes

source · line 45
public
public val receivedBytes: Long

get: public read-only

Body bytes received after protocol framing removal.