|
|
|
@ -84,6 +84,7 @@ public class Http_request_parser {
|
|
|
|
|
case Tid_pragma: this.pragma = Bry_.Mid(line, val_bgn, line_len); break;
|
|
|
|
|
case Tid_cache_control: this.cache_control = Bry_.Mid(line, val_bgn, line_len); break;
|
|
|
|
|
case Tid_origin: this.origin = Bry_.Mid(line, val_bgn, line_len); break;
|
|
|
|
|
case Tid_accept_charset: break;
|
|
|
|
|
default: throw Err_.new_unhandled(tid);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -146,7 +147,8 @@ public class Http_request_parser {
|
|
|
|
|
}
|
|
|
|
|
private String To_str() {return Make_request_itm().To_str(tmp_bfr, Bool_.N);}
|
|
|
|
|
private static final int Tid_get = 1, Tid_post = 2, Tid_host = 3, Tid_user_agent = 4, Tid_accept = 5, Tid_accept_language = 6, Tid_accept_encoding = 7, Tid_dnt = 8
|
|
|
|
|
, Tid_x_requested_with = 9, Tid_cookie = 10, Tid_referer = 11, Tid_content_length = 12, Tid_content_type = 13, Tid_connection = 14, Tid_pragma = 15, Tid_cache_control = 16, Tid_origin = 17;
|
|
|
|
|
, Tid_x_requested_with = 9, Tid_cookie = 10, Tid_referer = 11, Tid_content_length = 12, Tid_content_type = 13, Tid_connection = 14, Tid_pragma = 15, Tid_cache_control = 16
|
|
|
|
|
, Tid_origin = 17, Tid_accept_charset = 18;
|
|
|
|
|
private static final Btrie_slim_mgr trie = Btrie_slim_mgr.ci_a7()
|
|
|
|
|
.Add_str_int("GET" , Tid_get)
|
|
|
|
|
.Add_str_int("POST" , Tid_post)
|
|
|
|
@ -155,6 +157,7 @@ public class Http_request_parser {
|
|
|
|
|
.Add_str_int("Accept:" , Tid_accept)
|
|
|
|
|
.Add_str_int("Accept-Language:" , Tid_accept_language)
|
|
|
|
|
.Add_str_int("Accept-Encoding:" , Tid_accept_encoding)
|
|
|
|
|
.Add_str_int("Accept-Charset:" , Tid_accept_charset)
|
|
|
|
|
.Add_str_int("DNT:" , Tid_dnt)
|
|
|
|
|
.Add_str_int("X-Requested-With:" , Tid_x_requested_with)
|
|
|
|
|
.Add_str_int("Cookie:" , Tid_cookie)
|
|
|
|
|