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

◆ HttpConnectionSettings()

System.Net.Http.HttpConnectionSettings.HttpConnectionSettings ( )
inline

Definition at line 91 of file HttpConnectionSettings.cs.

92 {
93 bool allowHttp = GlobalHttpSettings.SocketsHttpHandler.AllowHttp2;
94 bool allowHttp2 = GlobalHttpSettings.SocketsHttpHandler.AllowHttp3;
95 _maxHttpVersion = ((allowHttp2 && allowHttp) ? HttpVersion.Version30 : (allowHttp ? HttpVersion.Version20 : HttpVersion.Version11));
96 }

References System.Net.Http.HttpConnectionSettings._maxHttpVersion, System.Net.Http.GlobalHttpSettings.SocketsHttpHandler.AllowHttp2, System.Net.Http.GlobalHttpSettings.SocketsHttpHandler.AllowHttp3, System.Net.HttpVersion.Version11, and System.Net.HttpVersion.Version30.