Home
last modified time | relevance | path

Searched refs:lws_hdr_total_length (Results 1 – 18 of 18) sorted by relevance

/third_party/libwebsockets/lib/roles/http/server/
Dserver.c642 if (!lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_ACCEPT_ENCODING)) in lws_vfs_prepare_flags()
773 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_IF_RANGE)) in lws_http_serve()
778 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_IF_NONE_MATCH)) { in lws_http_serve()
960 lws_hdr_total_length(wsi, WSI_TOKEN_GET_URI) || in lws_find_mount()
961 lws_hdr_total_length(wsi, WSI_TOKEN_POST_URI) || in lws_find_mount()
963 lws_hdr_total_length(wsi, WSI_TOKEN_PUT_URI) || in lws_find_mount()
964 lws_hdr_total_length(wsi, WSI_TOKEN_PATCH_URI) || in lws_find_mount()
965 lws_hdr_total_length(wsi, WSI_TOKEN_DELETE_URI) || in lws_find_mount()
967 lws_hdr_total_length(wsi, WSI_TOKEN_HEAD_URI) || in lws_find_mount()
970 lws_hdr_total_length(wsi, in lws_find_mount()
[all …]
Daccess-log.c110 l = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_USER_AGENT); in lws_prepare_access_log_info()
127 l = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_REFERER); in lws_prepare_access_log_info()
/third_party/libwebsockets/lib/roles/cgi/
Dcgi-server.c202 if (lws_hdr_total_length(wsi, meths[m]) >= in lws_cgi()
285 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_REFERER)) { in lws_cgi()
293 lws_hdr_total_length(wsi, WSI_TOKEN_HOST)) { in lws_cgi()
300 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COOKIE)) { in lws_cgi()
305 p += lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COOKIE); in lws_cgi()
310 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_USER_AGENT)) { in lws_cgi()
318 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_ENCODING)) { in lws_cgi()
325 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_ACCEPT)) { in lws_cgi()
332 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_ACCEPT_ENCODING)) { in lws_cgi()
340 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_TYPE)) { in lws_cgi()
[all …]
/third_party/libwebsockets/lib/roles/ws/
Dserver-ws.c48 if (!lws_hdr_total_length(wsi, WSI_TOKEN_EXTENSIONS)) in lws_extension_server_handshake()
341 if (lws_hdr_total_length(wsi, WSI_TOKEN_VERSION)) in lws_process_ws_upgrade2()
647 if (!lws_hdr_total_length(wsi, WSI_TOKEN_HOST) || in handshake_0405()
648 !lws_hdr_total_length(wsi, WSI_TOKEN_KEY)) { in handshake_0405()
654 if (lws_hdr_total_length(wsi, WSI_TOKEN_KEY) >= in handshake_0405()
697 if (lws_hdr_total_length(wsi, WSI_TOKEN_PROTOCOL) && in handshake_0405()
781 int uri_len = lws_hdr_total_length(wsi, WSI_TOKEN_GET_URI); in handshake_0405()
Dclient-ws.c273 if (lws_hdr_total_length(wsi, WSI_TOKEN_ACCEPT) == 0) { in lws_client_ws_upgrade()
333 len = lws_hdr_total_length(wsi, WSI_TOKEN_PROTOCOL); in lws_client_ws_upgrade()
446 if (!lws_hdr_total_length(wsi, WSI_TOKEN_EXTENSIONS)) { in lws_client_ws_upgrade()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c641 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_SET_COOKIE)) in lws_client_interpret_server_handshake()
747 int ml = lws_hdr_total_length(wsi, _WSI_TOKEN_CLIENT_METHOD); in lws_client_interpret_server_handshake()
898 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_TYPE)) { in lws_client_interpret_server_handshake()
909 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_TRANSFER_ENCODING)) { in lws_client_interpret_server_handshake()
921 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH)) { in lws_client_interpret_server_handshake()
1002 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH) && in lws_client_interpret_server_handshake()
1231 lws_hdr_total_length(wsi->parent, WSI_TOKEN_HTTP_CONTENT_LENGTH)) { in lws_generate_client_handshake()
1239 lws_hdr_total_length(wsi->parent, WSI_TOKEN_HTTP_AUTHORIZATION)) { in lws_generate_client_handshake()
1245 lws_hdr_total_length(wsi->parent, WSI_TOKEN_HTTP_CONTENT_TYPE)) { in lws_generate_client_handshake()
1364 !lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH)) in lws_http_client_read()
/third_party/libwebsockets/lib/roles/http/
Ddate.c161 size_t len = (unsigned int)lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_RETRY_AFTER); in lws_http_check_retry_after()
192 len = (unsigned int)lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_DATE); in lws_http_check_retry_after()
Dparsers.c478 int lws_hdr_total_length(struct lws *wsi, enum lws_token_indexes h) in lws_hdr_total_length() function
535 int toklen = lws_hdr_total_length(wsi, h), n, comma; in lws_hdr_copy()
1512 if (lws_hdr_total_length(wsi, WSI_TOKEN_UPGRADE)) { in lws_parse()
1543 n = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COOKIE); in lws_http_cookie_get()
1553 if (lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_METHOD)) { in lws_http_cookie_get()
Dheader.c638 len = lws_hdr_total_length(wsi, (enum lws_token_indexes)m); in lws_sul_http_ah_lifecheck()
/third_party/libwebsockets/lib/secure-streams/protocols/
Dss-h1.c325 n = lws_hdr_total_length(wsi, polmd->value_is_http_token); in lws_extract_metadata()
1069 m = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_METHOD); in secstream_h1()
1075 m = lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_PATH); in secstream_h1()
1083 m = lws_hdr_total_length(wsi, WSI_TOKEN_GET_URI); in secstream_h1()
1092 m = lws_hdr_total_length(wsi, WSI_TOKEN_POST_URI); in secstream_h1()
1101 m = lws_hdr_total_length(wsi, WSI_TOKEN_PATCH_URI); in secstream_h1()
/third_party/libwebsockets/lib/roles/h2/
Dhttp2.c1691 len = lws_hdr_total_length(h2n->swsi, (enum lws_token_indexes)n); in lws_h2_parse_end_of_frame()
1766 if (!lws_hdr_total_length(h2n->swsi, WSI_TOKEN_HTTP_COLON_PATH) || in lws_h2_parse_end_of_frame()
1767 !lws_hdr_total_length(h2n->swsi, WSI_TOKEN_HTTP_COLON_METHOD) || in lws_h2_parse_end_of_frame()
1768 !lws_hdr_total_length(h2n->swsi, WSI_TOKEN_HTTP_COLON_SCHEME) || in lws_h2_parse_end_of_frame()
1769 lws_hdr_total_length(h2n->swsi, WSI_TOKEN_HTTP_COLON_STATUS) || in lws_h2_parse_end_of_frame()
1777 n = lws_hdr_total_length(h2n->swsi, WSI_TOKEN_TE); in lws_h2_parse_end_of_frame()
1819 if (lws_hdr_total_length(h2n->swsi, in lws_h2_parse_end_of_frame()
2202 if (lws_hdr_total_length(h2n->swsi, in lws_h2_parser()
2573 n = lws_hdr_total_length(wsi, _WSI_TOKEN_CLIENT_URI); in lws_h2_client_handshake()
2593 n = lws_hdr_total_length(wsi, _WSI_TOKEN_CLIENT_HOST); in lws_h2_client_handshake()
[all …]
Dops-h2.c811 if (!lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_PATH) || in lws_h2_bind_for_post_before_action()
824 lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_COLON_PATH)); in lws_h2_bind_for_post_before_action()
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-form-get/
Dminimal-http-server-form-get.c37 if (!lws_hdr_total_length(wsi, WSI_TOKEN_GET_URI)) in callback_http()
/third_party/libwebsockets/lib/core-net/
Ddummy-callback.c35 int n = lws_hdr_total_length(par, (enum lws_token_indexes)index); in proxy_header()
552 !lws_hdr_total_length(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH)) { in lws_callback_http_dummy()
/third_party/libwebsockets/include/libwebsockets/
Dlws-http.h403 lws_hdr_total_length(struct lws *wsi, enum lws_token_indexes h);
/third_party/libwebsockets/test-apps/
Dtest-server.c147 hlen = lws_hdr_total_length(wsi, (enum lws_token_indexes)n); in lws_callback_http()
/third_party/libwebsockets/lib/secure-streams/
Dpolicy-common.c185 *len = (size_t)lws_hdr_total_length(h->wsi, n); in lws_ss_get_metadata()
/third_party/libwebsockets/plugins/acme-client/
Dprotocol_lws_acme_client.c942 if (lws_hdr_total_length(wsi, WSI_TOKEN_REPLAY_NONCE) && in callback_acme_client()
978 if (!lws_hdr_total_length(wsi, in callback_acme_client()