Class RequestOptions
Options for RESTRequest and RESTRequest<T>. This class is used to set the parameters for the http request.
Inherited Members
Namespace: Glitch9.IO.Networking.RESTApi
Assembly: Glitch9.IO.dll
Syntax
public sealed class RequestOptions
Properties
| Edit this page View SourceCancellationToken
Optional. External cancellation token for the request.
Declaration
public CancellationToken CancellationToken { get; set; }
Property Value
| Type | Description |
|---|---|
| CancellationToken |
ContentType
Optional. The content type of the request. Default is Json
Declaration
public MimeType ContentType { get; set; }
Property Value
| Type | Description |
|---|---|
| MimeType |
Context
Optional. Arbitrary context data associated with the request.
Declaration
public object Context { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
DisableAwsSigV4
If true, disables AWS Signature Version 4 signing for the request.
Declaration
public bool DisableAwsSigV4 { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
DownloadOptions
The directory path where the file will be downloaded.
Declaration
public DownloadOptions DownloadOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| DownloadOptions |
JssOverride
Optional. The JsonSerializerSettings override for this request.
Declaration
public JsonSerializerSettings JssOverride { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonSerializerSettings |
LogOptions
Overrides the log level for the request.
Declaration
public CurlLogOptions LogOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| CurlLogOptions |
MaxRetryCount
Overrides the client max retry count for the request.
Declaration
public int? MaxRetryCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int? |
MaxRetryDelaySeconds
Overrides the client max retry delay in seconds for the request.
Declaration
public float? MaxRetryDelaySeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
OnContextCaptured
Optional. Invoked by the HTTP layer after the request body has been serialized and the final endpoint URL has been resolved. Subscribe to capture the finalized CurlContext regardless of what Wire model is sent.
Declaration
public Action<CurlContext> OnContextCaptured { get; set; }
Property Value
| Type | Description |
|---|---|
| Action<CurlContext> |
OutputAudioFormat
Optional. The audio format of the request. Default is null.
Declaration
public AudioFormat OutputAudioFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| AudioFormat |
PollHandler
Optional. The poll handler for handling polling results.
Declaration
public IPollHandler PollHandler { get; set; }
Property Value
| Type | Description |
|---|---|
| IPollHandler |
RetryDelaySeconds
Overrides the client retry delay in seconds for the request.
Declaration
public float? RetryDelaySeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| float? |
Sender
The local sender of the request.
Declaration
public string Sender { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
StreamOptions
Optional. The streaming options for handling streaming responses.
Declaration
public StreamOptions StreamOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| StreamOptions |
Timeout
Overrides the client timeout for the request.
Declaration
public TimeSpan? Timeout { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan? |