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