internal static String GetName(thttp_header_type_t type) { switch (type) { case thttp_header_type_t.Authorization: return("Authorization"); case thttp_header_type_t.Content_Length: return("Content-Length"); case thttp_header_type_t.Content_Type: return("Content-Type"); case thttp_header_type_t.ETag: return("ETag"); case thttp_header_type_t.Proxy_Authenticate: return("Proxy-Authenticate"); case thttp_header_type_t.Proxy_Authorization: return("Proxy-Authorization"); case thttp_header_type_t.Transfer_Encoding: return("Transfer-Encoding"); case thttp_header_type_t.WWW_Authenticate: return("WWW-Authenticate"); default: return("unknown-header"); } }
public THTTP_Header(thttp_header_type_t type) { mType = type; }
internal static String GetName(thttp_header_type_t type) { switch (type) { case thttp_header_type_t.Authorization: return "Authorization"; case thttp_header_type_t.Content_Length: return "Content-Length"; case thttp_header_type_t.Content_Type: return "Content-Type"; case thttp_header_type_t.ETag: return "ETag"; case thttp_header_type_t.Proxy_Authenticate: return "Proxy-Authenticate"; case thttp_header_type_t.Proxy_Authorization: return "Proxy-Authorization"; case thttp_header_type_t.Transfer_Encoding: return "Transfer-Encoding"; case thttp_header_type_t.WWW_Authenticate: return "WWW-Authenticate"; default: return "unknown-header"; } }