class HttpRequestOptions
source · line 6public
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
public fun HttpRequestOptions.copy(configure: HttpRequestOptionsBuilder.() -> Unit = {}): HttpRequestOptions· scoop:scoop.http.server:0.1.0
property deadline
source · line 12public
public val deadline: Duration? = None
get: public read-only
Total request lifetime, including response execution and structured children.
property onCompleted
source · line 14public
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 10public
public val bufferedBodyLimit: Long = 2097152L
get: public read-only
Maximum bytes collected by aggregate body helpers.
property bodyLimit
source · line 8public
public val bodyLimit: Long? = Some(8388608L)
get: public read-only
Maximum framed request body bytes, or None for no total input limit.