MCPcopy Create free account
hub / github.com/aptabase/aptabase / GetHeader

Method GetHeader

src/Features/GeoIP/CloudGeoClient.cs:33–43  ·  view source on GitHub ↗
(HttpContext httpContext, params string[] names)

Source from the content-addressed store, hash-verified

31 }
32
33 private static string GetHeader(HttpContext httpContext, params string[] names)
34 {
35 foreach (var name in names)
36 {
37 var value = httpContext.Request.Headers[name].ToString()?.ToUpper() ?? "";
38 if (!string.IsNullOrEmpty(value))
39 return value;
40 }
41
42 return "";
43 }
44}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected