tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IHttpClient.cs
Go to the documentation of this file.
1using System;
2using System.Net.Http;
3using System.Net.Http.Headers;
4using System.Threading;
5using System.Threading.Tasks;
6
8{
12 public interface IHttpClient : IDisposable
13 {
17 TimeSpan Timeout { get; set; }
18
22 HttpRequestHeaders DefaultRequestHeaders { get; }
23
31 Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken);
32 }
33}
TimeSpan Timeout
The request timeout.
Task< HttpResponseMessage > SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
Send an HTTP request.
HttpRequestHeaders DefaultRequestHeaders
The HttpRequestHeaders used on every request.