Table of Contents

Class BaseRestRequest

Namespace
DisCatSharp.Net
Assembly
DisCatSharp.dll

Represents a request sent over HTTP.

public abstract class BaseRestRequest
Inheritance
BaseRestRequest
Inherited Members

Properties

Discord

Gets the discord client.

Headers

Gets the headers sent with this request.

Method

Gets the HTTP method used for this request.

OAuth2Client

Gets the oauth2 client.

RateLimitWaitOverride

Gets the override for the rate limit bucket wait time.

RequestTaskSource

Gets the request task source.

Route

Gets the generic path (no parameters) for this request.

Url

Gets the url to which this request is going to be made.

Methods

SetCompleted(RestResponse)

Sets as completed.

SetFaulted(Exception)

Sets as faulted.

TrySetFaulted(Exception)

Tries to set as faulted.

WaitForCompletionAsync()

Asynchronously waits for this request to complete.