public static GetNormalizedName ( String Name ) : String | ||
Name | String | |
리턴 | String |
public HttpHeader[] Get(String Name) { String NormalizedName = HttpHeader.GetNormalizedName(Name); if (Headers.ContainsKey(NormalizedName)) { return(Headers[NormalizedName].ToArray()); } else { return(new HttpHeader[0]); } }
public bool TryGetOne(String Name, out HttpHeader HttpHeader) { String NormalizedName = HttpHeader.GetNormalizedName(Name); List<HttpHeader> List; if (Headers.TryGetValue(NormalizedName, out List)) { if (List.Count > 0) { HttpHeader = List[0]; return true; } else { HttpHeader = null; return false; } } HttpHeader = null; return false; }
public bool TryGetOne(String Name, out HttpHeader HttpHeader) { String NormalizedName = HttpHeader.GetNormalizedName(Name); List <HttpHeader> List; if (Headers.TryGetValue(NormalizedName, out List)) { if (List.Count > 0) { HttpHeader = List[0]; return(true); } else { HttpHeader = null; return(false); } } HttpHeader = null; return(false); }