Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
HttpConnectionSettings.cs
Go to the documentation of this file.
3using System.IO;
9
10namespace System.Net.Http;
11
12internal sealed class HttpConnectionSettings
13{
15
16 internal bool _useCookies = true;
17
19
20 internal bool _useProxy = true;
21
22 internal IWebProxy _proxy;
23
25
27
29
30 internal bool _preAuthenticate;
31
33
34 internal bool _allowAutoRedirect = true;
35
36 internal int _maxAutomaticRedirections = 50;
37
38 internal int _maxConnectionsPerServer = int.MaxValue;
39
40 internal int _maxResponseDrainSize = 1048576;
41
43
44 internal int _maxResponseHeadersLength = 64;
45
47
49
51
53
55
57
59
61
63
65
67
69
71
73
75
77
79
80 internal int _initialHttp2StreamWindowSize = 65535;
81
82 private byte[] _http3SettingsFrame;
83
85
86 [SupportedOSPlatform("windows")]
87 [SupportedOSPlatform("linux")]
88 [SupportedOSPlatform("macos")]
90
97
99 {
100 if (_useCookies && _cookieContainer == null)
101 {
103 }
105 {
123 _proxy = _proxy,
124 _sslOptions = _sslOptions?.ShallowClone(),
137 _defaultCredentialsUsedForProxy = (_proxy != null && (_proxy.Credentials == CredentialCache.DefaultCredentials || _defaultProxyCredentials == CredentialCache.DefaultCredentials)),
139 };
141 {
142 httpConnectionSettings._quicImplementationProvider = _quicImplementationProvider;
143 }
145 }
146}
static ICredentials DefaultCredentials
static readonly Version Version30
static readonly Version Version11
Definition HttpVersion.cs:9
static byte[] BuildSettingsFrame(HttpConnectionSettings settings)
HeaderEncodingSelector< HttpRequestMessage > _responseHeaderEncodingSelector
SslClientAuthenticationOptions _sslOptions
HeaderEncodingSelector< HttpRequestMessage > _requestHeaderEncodingSelector
QuicImplementationProvider _quicImplementationProvider
Func< SocketsHttpPlaintextStreamFilterContext, CancellationToken, ValueTask< Stream > > _plaintextStreamFilter
DistributedContextPropagator _activityHeadersPropagator
IDictionary< string, object > _properties
Func< SocketsHttpConnectionContext, CancellationToken, ValueTask< Stream > > _connectCallback
static readonly TimeSpan DefaultConnectTimeout
static readonly TimeSpan DefaultResponseDrainTimeout
static readonly TimeSpan DefaultPooledConnectionLifetime
static readonly TimeSpan DefaultKeepAlivePingDelay
static readonly TimeSpan DefaultKeepAlivePingTimeout
static readonly TimeSpan DefaultExpect100ContinueTimeout
static readonly TimeSpan DefaultPooledConnectionIdleTimeout