tgstation-server
6.12.3
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Client
ApiClientFactory.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Tgstation.Server.Api
;
4
using
Tgstation.Server.Common.Http
;
5
6
namespace
Tgstation.Server.Client
7
{
9
sealed
class
ApiClientFactory
:
IApiClientFactory
10
{
12
public
IApiClient
CreateApiClient
(
13
Uri url,
14
ApiHeaders
apiHeaders,
15
ApiHeaders
? tokenRefreshHeaders,
16
bool
authless) =>
new
ApiClient
(
17
new
HttpClient
(),
18
url,
19
apiHeaders,
20
tokenRefreshHeaders,
21
authless);
22
}
23
}
Tgstation.Server.Api.ApiHeaders
Represents the header that must be present for every server request.
Definition
ApiHeaders.cs:25
Tgstation.Server.Client.ApiClientFactory
Definition
ApiClientFactory.cs:10
Tgstation.Server.Client.ApiClientFactory.CreateApiClient
IApiClient CreateApiClient(Uri url, ApiHeaders apiHeaders, ApiHeaders? tokenRefreshHeaders, bool authless)
Create an IApiClient.A new IApiClient.
Tgstation.Server.Client.ApiClient
Definition
ApiClient.cs:35
Tgstation.Server.Common.Http.HttpClient
Definition
HttpClient.cs:11
Tgstation.Server.Client.IApiClientFactory
For creating IApiClients.
Definition
IApiClientFactory.cs:11
Tgstation.Server.Client.IApiClient
Web interface for the API.
Definition
IApiClient.cs:17
Tgstation.Server.Api
Definition
ApiHeaders.cs:20
Tgstation.Server.Client
Definition
AuthenticatedGraphQLServerClient.cs:12
Tgstation.Server.Common.Http
Definition
CachedResponseStream.cs:7
Generated by
1.9.8