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

◆ SetupHandlerChain()

HttpMessageHandlerStage System.Net.Http.SocketsHttpHandler.SetupHandlerChain ( )
inlineprivate

Definition at line 482 of file SocketsHttpHandler.cs.

483 {
484 HttpConnectionSettings httpConnectionSettings = _settings.CloneAndNormalize();
485 HttpConnectionPoolManager poolManager = new HttpConnectionPoolManager(httpConnectionSettings);
486 HttpMessageHandlerStage httpMessageHandlerStage = ((httpConnectionSettings._credentials != null) ? ((HttpMessageHandlerStage)new HttpAuthenticatedConnectionHandler(poolManager)) : ((HttpMessageHandlerStage)new HttpConnectionHandler(poolManager)));
487 if (DiagnosticsHandler.IsGloballyEnabled())
488 {
490 if (activityHeadersPropagator != null)
491 {
493 }
494 }
495 if (httpConnectionSettings._allowAutoRedirect)
496 {
497 HttpMessageHandlerStage redirectInnerHandler = ((httpConnectionSettings._credentials == null || httpConnectionSettings._credentials is CredentialCache) ? httpMessageHandlerStage : new HttpConnectionHandler(poolManager));
498 httpMessageHandlerStage = new RedirectHandler(httpConnectionSettings._maxAutomaticRedirections, httpMessageHandlerStage, redirectInnerHandler);
499 }
500 if (httpConnectionSettings._automaticDecompression != 0)
501 {
502 httpMessageHandlerStage = new DecompressionHandler(httpConnectionSettings._automaticDecompression, httpMessageHandlerStage);
503 }
505 {
506 httpMessageHandlerStage.Dispose();
507 }
508 return _handler;
509 }
readonly HttpConnectionSettings _settings
static int CompareExchange(ref int location1, int value, int comparand)

References System.Net.Http.SocketsHttpHandler._handler, System.Net.Http.SocketsHttpHandler._settings, System.Net.Http.HttpConnectionSettings.CloneAndNormalize(), System.Threading.Interlocked.CompareExchange(), and System.Net.Http.DiagnosticsHandler.IsGloballyEnabled().

Referenced by System.Net.Http.SocketsHttpHandler.Send(), and System.Net.Http.SocketsHttpHandler.SendAsync().