Class RestRequestHandler
- Namespace
- NetCord.Rest
- Assembly
- NetCord.dll
public sealed class RestRequestHandler : IRestRequestHandler, IDisposable
- Inheritance
-
RestRequestHandler
- Implements
-
- Inherited Members
-
Constructors
RestRequestHandler()
public RestRequestHandler()
RestRequestHandler(HttpMessageHandler)
public RestRequestHandler(HttpMessageHandler handler)
Parameters
handler
HttpMessageHandler
RestRequestHandler(HttpMessageHandler, bool)
public RestRequestHandler(HttpMessageHandler handler, bool disposeHandler)
Parameters
handler
HttpMessageHandler
disposeHandler
bool
Methods
AddDefaultHeader(string, IEnumerable<string>)
public void AddDefaultHeader(string name, IEnumerable<string> values)
Parameters
name
string
values
IEnumerable<string>
Dispose()
SendAsync(HttpRequestMessage, CancellationToken)
public Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken = default)
Parameters
request
HttpRequestMessage
cancellationToken
CancellationToken
Returns
- Task<HttpResponseMessage>