Scoop API

scoop:scoop.http.server:0.1.0

HttpRequestOptions

class HttpRequestOptions

source · line 6
public
public class HttpRequestOptions internal constructor(
    /** Maximum framed request body bytes, or None for no total input limit. */
    public val bodyLimit: Long? = Some(8388608L),
    /** Maximum bytes collected by aggregate body helpers. */
    public val bufferedBodyLimit: Long = 2097152L,
    /** Total request lifetime, including response execution and structured children. */
    public val deadline: Duration? = None,
    /** Observes the final snapshot after request resources and children have ended. */
    public val onCompleted: ((HttpRequestCompletion) -> Unit)? = None
)

Immutable limits, deadline and completion observation for one application request.

Extensions

property deadline

source · line 12
public
public val deadline: Duration? = None

get: public read-only

Total request lifetime, including response execution and structured children.

property onCompleted

source · line 14
public
public val onCompleted: ((HttpRequestCompletion) -> Unit)? = None

get: public read-only

Observes the final snapshot after request resources and children have ended.

property bufferedBodyLimit

source · line 10
public
public val bufferedBodyLimit: Long = 2097152L

get: public read-only

Maximum bytes collected by aggregate body helpers.

property bodyLimit

source · line 8
public
public val bodyLimit: Long? = Some(8388608L)

get: public read-only

Maximum framed request body bytes, or None for no total input limit.