tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Common
Http
IHttpClient.cs
Go to the documentation of this file.
1
using
System;
2
using
System.Net.Http;
3
using
System.Net.Http.Headers;
4
using
System.Threading;
5
using
System.Threading.Tasks;
6
7
namespace
Tgstation.Server.Common.Http
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
}
IDisposable
Tgstation.Server.Common.Http.IHttpClient
For sending HTTP requests.
Definition
IHttpClient.cs:13
Tgstation.Server.Common.Http.IHttpClient.Timeout
TimeSpan Timeout
The request timeout.
Definition
IHttpClient.cs:17
Tgstation.Server.Common.Http.IHttpClient.SendAsync
Task< HttpResponseMessage > SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
Send an HTTP request.
Tgstation.Server.Common.Http.IHttpClient.DefaultRequestHeaders
HttpRequestHeaders DefaultRequestHeaders
The HttpRequestHeaders used on every request.
Definition
IHttpClient.cs:22
Tgstation.Server.Common.Http
Definition
CachedResponseStream.cs:7
Generated by
1.9.8