RequestOptions

data class RequestOptions(val onProgress: ProgressCallback? = null, val timeout: Duration = DEFAULT_REQUEST_TIMEOUT)(source)

Options that can be given per request.

Constructors

Link copied to clipboard
constructor(onProgress: ProgressCallback? = null, timeout: Duration = DEFAULT_REQUEST_TIMEOUT)

Properties

Link copied to clipboard

If set, requests progress notifications from the remote end (if supported). When progress notifications are received, this callback will be invoked.

Link copied to clipboard

A timeout for this request. If exceeded, an org.jetbrains.kotlinx.mcp.McpError with code RequestTimeout will be raised from request().