Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
parser_state.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: MIT */
2
3/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to
7 * deal in the Software without restriction, including without limitation the
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9 * sell copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
22 */
23#ifndef ZEPHYR_INCLUDE_NET_HTTP_PARSER_STATE_H_
24#define ZEPHYR_INCLUDE_NET_HTTP_PARSER_STATE_H_
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29enum state {
30 s_dead = 1, /* important that this is > 0 */
86 /* Important: 's_headers_done' must be the last 'header' state. All
87 * states beyond this must be 'body' states. It is used for overflow
88 * checking. See the PARSING_HEADER() macro.
89 */
96};
97
98#ifdef __cplusplus
99}
100#endif
101#endif
state
Definition parser_state.h:29
@ s_body_identity
Definition parser_state.h:93
@ s_req_server_with_at
Definition parser_state.h:55
@ s_header_value_discard_ws_almost_done
Definition parser_state.h:74
@ s_chunk_data_done
Definition parser_state.h:92
@ s_chunk_size_almost_done
Definition parser_state.h:83
@ s_start_res
Definition parser_state.h:33
@ s_body_identity_eof
Definition parser_state.h:94
@ s_chunk_data
Definition parser_state.h:90
@ s_res_H
Definition parser_state.h:34
@ s_headers_done
Definition parser_state.h:85
@ s_res_first_status_code
Definition parser_state.h:42
@ s_res_first_http_minor
Definition parser_state.h:40
@ s_header_value_discard_lws
Definition parser_state.h:75
@ s_res_status
Definition parser_state.h:45
@ s_header_field
Definition parser_state.h:72
@ s_req_query_string
Definition parser_state.h:58
@ s_req_query_string_start
Definition parser_state.h:57
@ s_res_http_major
Definition parser_state.h:39
@ s_req_spaces_before_url
Definition parser_state.h:49
@ s_header_almost_done
Definition parser_state.h:79
@ s_req_path
Definition parser_state.h:56
@ s_res_HTTP
Definition parser_state.h:37
@ s_header_value
Definition parser_state.h:77
@ s_start_req_or_res
Definition parser_state.h:31
@ s_req_method
Definition parser_state.h:48
@ s_chunk_size
Definition parser_state.h:81
@ s_req_http_HTTP
Definition parser_state.h:65
@ s_req_http_minor
Definition parser_state.h:69
@ s_req_server
Definition parser_state.h:54
@ s_chunk_parameters
Definition parser_state.h:82
@ s_start_req
Definition parser_state.h:47
@ s_res_first_http_major
Definition parser_state.h:38
@ s_res_http_minor
Definition parser_state.h:41
@ s_req_schema
Definition parser_state.h:50
@ s_req_http_H
Definition parser_state.h:62
@ s_req_schema_slash_slash
Definition parser_state.h:52
@ s_header_field_start
Definition parser_state.h:71
@ s_req_first_http_major
Definition parser_state.h:66
@ s_res_line_almost_done
Definition parser_state.h:46
@ s_header_value_start
Definition parser_state.h:76
@ s_res_HTT
Definition parser_state.h:36
@ s_req_http_major
Definition parser_state.h:67
@ s_header_value_lws
Definition parser_state.h:78
@ s_req_line_almost_done
Definition parser_state.h:70
@ s_headers_almost_done
Definition parser_state.h:84
@ s_req_fragment
Definition parser_state.h:60
@ s_req_schema_slash
Definition parser_state.h:51
@ s_res_or_resp_H
Definition parser_state.h:32
@ s_req_fragment_start
Definition parser_state.h:59
@ s_req_http_HT
Definition parser_state.h:63
@ s_header_value_discard_ws
Definition parser_state.h:73
@ s_message_done
Definition parser_state.h:95
@ s_dead
Definition parser_state.h:30
@ s_req_http_start
Definition parser_state.h:61
@ s_req_http_HTT
Definition parser_state.h:64
@ s_res_HT
Definition parser_state.h:35
@ s_res_status_start
Definition parser_state.h:44
@ s_res_status_code
Definition parser_state.h:43
@ s_req_first_http_minor
Definition parser_state.h:68
@ s_chunk_size_start
Definition parser_state.h:80
@ s_req_server_start
Definition parser_state.h:53
@ s_chunk_data_almost_done
Definition parser_state.h:91