Home
last modified time | relevance | path

Searched refs:http_parser (Results 1 – 11 of 11) sorted by relevance

/Zephyr-latest/include/zephyr/net/http/
Dparser.h68 struct http_parser;
90 typedef int (*http_data_cb)(struct http_parser *, const char *at,
92 typedef int (*http_cb)(struct http_parser *);
155 struct http_parser { struct
229 void http_parser_init(struct http_parser *parser, enum http_parser_type type);
241 size_t http_parser_execute(struct http_parser *parser,
251 int http_should_keep_alive(const struct http_parser *parser);
263 void http_parser_pause(struct http_parser *parser, int paused);
266 int http_body_is_final(const struct http_parser *parser);
Dclient.h216 struct http_parser parser;
Dserver.h450 struct http_parser parser;
/Zephyr-latest/subsys/net/lib/http/
DREADME_http_parser12 http_parser_url.c (originally located in http_parser.c).
14 * "http-parser" is the project's name, "http_parser" is used in filenames.
Dhttp_client.c176 static int on_url(struct http_parser *parser, const char *at, size_t length) in on_url()
191 static int on_status(struct http_parser *parser, const char *at, size_t length) in on_status()
215 static int on_header_field(struct http_parser *parser, const char *at, in on_header_field()
247 static int on_header_value(struct http_parser *parser, const char *at, in on_header_value()
291 static int on_body(struct http_parser *parser, const char *at, size_t length) in on_body()
320 static int on_headers_complete(struct http_parser *parser) in on_headers_complete()
352 static int on_message_begin(struct http_parser *parser) in on_message_begin()
369 static int on_message_complete(struct http_parser *parser) in on_message_complete()
388 static int on_chunk_header(struct http_parser *parser) in on_chunk_header()
402 static int on_chunk_complete(struct http_parser *parser) in on_chunk_complete()
[all …]
DCMakeLists.txt11 zephyr_library_sources_ifdef(CONFIG_HTTP_PARSER http_parser.c)
Dhttp_parser.c89 int count_header_size(struct http_parser *parser, int bytes) in count_header_size()
214 int cb_notify(struct http_parser *parser, enum state *current_state, http_cb cb, in cb_notify()
238 int cb_data(struct http_parser *parser, http_data_cb cb, int cb_error, in cb_data()
312 int strict_check(struct http_parser *parser, int c) in strict_check()
324 int strict_check(struct http_parser *parser, int c) in strict_check()
377 int http_message_needs_eof(const struct http_parser *parser);
380 int parser_header_state(struct http_parser *parser, char ch, char c) in parser_header_state()
525 int header_states(struct http_parser *parser, const char *data, size_t len, in header_states()
811 int zero_content_length(struct http_parser *parser, in zero_content_length()
863 int parser_execute(struct http_parser *parser, in parser_execute()
[all …]
Dhttp_server_http1.c691 static int on_header_field(struct http_parser *parser, const char *at, in on_header_field()
766 static int on_header_value(struct http_parser *parser, in on_header_value()
827 static int on_headers_complete(struct http_parser *parser) in on_headers_complete()
838 static int on_url(struct http_parser *parser, const char *at, size_t length) in on_url()
859 static int on_body(struct http_parser *parser, const char *at, size_t length) in on_body()
872 static int on_message_complete(struct http_parser *parser) in on_message_complete()
DKconfig8 This option enables the http_parser library from nodejs.
/Zephyr-latest/tests/net/lib/http_header_fields/src/
Dmain.c577 struct http_parser parser = { 0 }; in ZTEST()
630 struct http_parser parser = { 0 }; in ZTEST()
646 struct http_parser parser = { 0 }; in test_invalid_header_content()
691 struct http_parser parser = { 0 }; in test_invalid_header_field()
734 struct http_parser parser = { 0 }; in test_double_content_length_error()
764 struct http_parser parser = { 0 }; in test_chunked_content_length_error()
795 struct http_parser parser = { 0 }; in test_header_cr_no_lf_error()
826 struct http_parser parser = { 0 }; in test_content_range_supplied()
853 struct http_parser parser = { 0 }; in test_content_range_asterisk_total()
880 struct http_parser parser = { 0 }; in test_double_content_range_error()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c169 static int on_header_field(struct http_parser *parser, const char *at, in on_header_field()
193 static int on_header_value(struct http_parser *parser, const char *at, in on_header_value()