Пример #1
0
        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");
            }
        }
Пример #2
0
 public THTTP_Header(thttp_header_type_t type)
 {
     mType = type;
 }
Пример #3
0
        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";
            }
        }
Пример #4
0
 public THTTP_Header(thttp_header_type_t type)
 {
     mType = type;
 }