RequestOptions
class RequestOptions(relatedRequestId: RequestId? = null, resumptionToken: String? = null, onResumptionToken: (String) -> Unit? = null, val onProgress: ProgressCallback? = null, val timeout: Duration = DEFAULT_REQUEST_TIMEOUT) : TransportSendOptions(source)
Options that can be given per request.
Properties
Link copied to clipboard
callback for progress notifications. 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 callback that is invoked when the resumption token changes, if supported by the transport. This allows clients to persist the latest token for potential reconnection.
Link copied to clipboard
if present, relatedRequestId is used to indicate to the transport which incoming request to associate this outgoing message with.
Link copied to clipboard
the resumption token used to continue long-running requests that were interrupted. This allows clients to reconnect and continue from where they left off, if supported by the transport.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun copy(relatedRequestId: RequestId? = this.relatedRequestId, resumptionToken: String? = this.resumptionToken, onResumptionToken: (String) -> Unit? = this.onResumptionToken, onProgress: ProgressCallback? = this.onProgress, timeout: Duration = this.timeout): RequestOptions