Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteHostHeaderAsync()

async ValueTask System.Net.Http.HttpConnection.WriteHostHeaderAsync ( Uri uri,
bool async )
inlineprivate

Definition at line 1311 of file HttpConnection.cs.

1312 {
1314 if (_pool.HostHeaderValueBytes != null)
1315 {
1317 }
1318 else
1319 {
1320 if (uri.HostNameType != UriHostNameType.IPv6)
1321 {
1323 }
1324 else
1325 {
1329 }
1330 if (!uri.IsDefaultPort)
1331 {
1334 }
1335 }
1337 }
static readonly KnownHeader Host
Task WriteTwoBytesAsync(byte b1, byte b2, bool async)
Task WriteBytesAsync(byte[] bytes, bool async)
Task WriteAsciiStringAsync(string s, bool async)
readonly HttpConnectionPool _pool
Task WriteByteAsync(byte b, bool async)
Task WriteDecimalInt32Async(int value, bool async)
new ConfiguredTaskAwaitable< TResult > ConfigureAwait(bool continueOnCapturedContext)
Definition Task.cs:226

References System.Net.Http.HttpConnection._pool, System.Threading.Tasks.Task< TResult >.ConfigureAwait(), System.Net.Http.Headers.KnownHeaders.Host, System.Net.Http.HttpConnectionPool.HostHeaderValueBytes, System.Uri.HostNameType, System.Uri.IdnHost, System.Uri.IsDefaultPort, System.Uri.Port, System.Net.Http.HttpConnection.WriteAsciiStringAsync(), System.Net.Http.HttpConnection.WriteByteAsync(), System.Net.Http.HttpConnection.WriteBytesAsync(), System.Net.Http.HttpConnection.WriteDecimalInt32Async(), and System.Net.Http.HttpConnection.WriteTwoBytesAsync().

Referenced by System.Net.Http.HttpConnection.SendAsyncCore().