Class RequestOptions
- Namespace
- Glitch9.IO.Networking.RESTApi
Options for RESTRequest and RESTRequest<T>. This class is used to set the parameters for the http request.
public class RequestOptions
- Inheritance
-
RequestOptions
- Inherited Members
- Extension Methods
Properties
Id
The identifier of the request.
public string Id { get; set; }
Property Value
IgnoreLogs
If this is set, the request will not log any information.
public bool IgnoreLogs { get; set; }
Property Value
MIMEType
Optional. The content type of the request. Default is Json
public virtual MIMEType MIMEType { get; set; }
Property Value
MaxRetry
The number of retries of the request. Default is 3
public int MaxRetry { get; set; }
Property Value
OutputAudioFormat
Optional. The audio format of the request. D Default is null.
public AudioFormat OutputAudioFormat { get; set; }
Property Value
OutputPath
The directory path where the file will be downloaded.
public string OutputPath { get; set; }
Property Value
RetryDelayInSec
Seconds of delay to make a retry. Default is 1
public float RetryDelayInSec { get; set; }
Property Value
Sender
The local sender of the request.
public string Sender { get; set; }
Property Value
StreamHandler
If this is set, it means you are requesting a stream response from the server.
public IStreamHandler StreamHandler { get; set; }
Property Value
Timeout
The custom timeout for the request.
public TimeSpan? Timeout { get; set; }
Property Value
Token
Optional. External cancellation token for the request.
public CancellationToken? Token { get; set; }