Class BaseRestRequest
Represents a request sent over HTTP.
Inheritance
BaseRestRequest
Assembly: KSharpPlus.dll
Syntax
public abstract class BaseRestRequest
Properties
|
Improve this Doc
View Source
Gets the headers sent with this request.
Declaration
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
|
Improve this Doc
View Source
Kuracord
Declaration
protected BaseKuracordClient Kuracord { get; }
Property Value
|
Improve this Doc
View Source
Method
Gets the HTTP method used for this request.
Declaration
public RestRequestMethod Method { get; }
Property Value
|
Improve this Doc
View Source
RequestTaskSource
Declaration
protected TaskCompletionSource<RestResponse> RequestTaskSource { get; }
Property Value
|
Improve this Doc
View Source
Url
Gets the url to which this request is going to be made.
Declaration
Property Value
Methods
|
Improve this Doc
View Source
SetCompleted(RestResponse)
Declaration
protected void SetCompleted(RestResponse response)
Parameters
|
Improve this Doc
View Source
SetFaulted(Exception)
Declaration
protected void SetFaulted(Exception ex)
Parameters
Type |
Name |
Description |
Exception |
ex |
|
|
Improve this Doc
View Source
TrySetFaulted(Exception)
Declaration
protected bool TrySetFaulted(Exception ex)
Parameters
Type |
Name |
Description |
Exception |
ex |
|
Returns
|
Improve this Doc
View Source
WaitForCompletionAsync()
Asynchronously waits for this request to complete.
Declaration
public Task<RestResponse> WaitForCompletionAsync()
Returns
Type |
Description |
Task<RestResponse> |
HTTP response to this request.
|