Skip to content

Commit 6dc73b8

Browse files
author
Sergey Pariev
committed
added a few new states in enums
1 parent 30ef100 commit 6dc73b8

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

src/impl/http_parser/lolevel/HTTPParser.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,6 +1678,7 @@ boolean parsing_header(State state) {
16781678
case chunk_data_done :
16791679
case body_identity :
16801680
case body_identity_eof :
1681+
case message_done :
16811682
return false;
16821683

16831684
}
@@ -1919,7 +1920,12 @@ enum State {
19191920
, req_schema
19201921
, req_schema_slash
19211922
, req_schema_slash_slash
1923+
, req_host_start
1924+
, req_host_v6_start
1925+
, req_host_v6
1926+
, req_host_v6_end
19221927
, req_host
1928+
, req_port_start
19231929
, req_port
19241930
, req_path
19251931
, req_query_string_start
@@ -1941,6 +1947,7 @@ enum State {
19411947
, header_field
19421948
, header_value_start
19431949
, header_value
1950+
, header_value_lws
19441951

19451952
, header_almost_done
19461953

@@ -1950,10 +1957,11 @@ enum State {
19501957
, chunk_size_almost_done
19511958

19521959
, headers_almost_done
1960+
, headers_done
19531961
// This space intentionally not left blank, comment from c, for orientation...
19541962
// the c version uses <= s_header_almost_done in java, we list the states explicitly
19551963
// in `parsing_header()`
1956-
/* Important: 's_headers_almost_done' must be the last 'header' state. All
1964+
/* Important: 's_headers_done' must be the last 'header' state. All
19571965
* states beyond this must be 'body' states. It is used for overflow
19581966
* checking. See the PARSING_HEADER() macro.
19591967
*/
@@ -1962,8 +1970,8 @@ enum State {
19621970
, chunk_data_done
19631971

19641972
, body_identity
1965-
, body_identity_eof;
1966-
1973+
, body_identity_eof
1974+
, message_done
19671975

19681976
}
19691977
enum HState {

0 commit comments

Comments
 (0)