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

◆ ParseHostNameFromHeader()

static string System.Net.Http.HttpConnectionPoolManager.ParseHostNameFromHeader ( string hostHeader)
inlinestaticprivate

Definition at line 207 of file HttpConnectionPoolManager.cs.

208 {
209 int num = hostHeader.IndexOf(':');
210 if (num >= 0)
211 {
212 int num2 = hostHeader.IndexOf(']');
213 if (num2 == -1)
214 {
215 return hostHeader.Substring(0, num);
216 }
217 num = hostHeader.LastIndexOf(':');
218 if (num > num2)
219 {
220 return hostHeader.Substring(0, num);
221 }
222 }
223 return hostHeader;
224 }

Referenced by System.Net.Http.HttpConnectionPoolManager.GetConnectionKey().