Home
last modified time | relevance | path

Searched refs:lws_hdr_simple_ptr (Results 1 – 19 of 19) sorted by relevance

/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c660 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP); in lws_client_interpret_server_handshake()
669 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP1_0); in lws_client_interpret_server_handshake()
679 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_STATUS); in lws_client_interpret_server_handshake()
703 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_LOCATION); in lws_client_interpret_server_handshake()
746 char *mp = lws_hdr_simple_ptr(wsi,_WSI_TOKEN_CLIENT_METHOD); in lws_client_interpret_server_handshake()
763 ads = lws_hdr_simple_ptr(wsi, in lws_client_interpret_server_handshake()
788 ads = lws_hdr_simple_ptr(wsi, in lws_client_interpret_server_handshake()
793 if (lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_URI)) in lws_client_interpret_server_handshake()
794 lws_strncpy(new_path, lws_hdr_simple_ptr(wsi, in lws_client_interpret_server_handshake()
899 if (!strncmp(lws_hdr_simple_ptr(wsi, in lws_client_interpret_server_handshake()
[all …]
/third_party/libwebsockets/lib/roles/cgi/
Dcgi-server.c157 char *pct = lws_hdr_simple_ptr(wsi, in lws_cgi()
223 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_METHOD)); in lws_cgi()
225 lws_hdr_simple_ptr(wsi, in lws_cgi()
234 lws_hdr_simple_ptr(wsi, (enum lws_token_indexes)uritok)); in lws_cgi()
286 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_REFERER)); in lws_cgi()
294 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST)); in lws_cgi()
311 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_USER_AGENT)); in lws_cgi()
319 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_CONTENT_ENCODING)); in lws_cgi()
326 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_ACCEPT)); in lws_cgi()
333 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_ACCEPT_ENCODING)); in lws_cgi()
[all …]
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c643 if (strstr(lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_ACCEPT_ENCODING), in lws_vfs_prepare_flags()
772 if (strcmp(sym, lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_IF_RANGE))) in lws_http_serve()
781 if (!strcmp(sym, lws_hdr_simple_ptr(wsi, in lws_http_serve()
1139 *puri_ptr = lws_hdr_simple_ptr(wsi, methods[n]); in lws_http_get_uri_and_method()
1227 pcolon = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_AUTHORIZATION); in lws_check_basic_auth()
1231 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_AUTHORIZATION)); in lws_check_basic_auth()
1369 i.host = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_AUTHORITY); in lws_http_proxy_start()
1375 i.host = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST); in lws_http_proxy_start()
1381 !lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST)) in lws_http_proxy_start()
1384 i.host = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HOST); in lws_http_proxy_start()
[all …]
Daccess-log.c82 me = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_METHOD); in lws_prepare_access_log_info()
/third_party/libwebsockets/lib/roles/ws/
Dclient-ws.c173 if (lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_SENT_PROTOCOLS)) in lws_generate_client_ws_handshake()
175 lws_hdr_simple_ptr(wsi, in lws_generate_client_ws_handshake()
279 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_UPGRADE); in lws_client_ws_upgrade()
320 pc = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_SENT_PROTOCOLS); in lws_client_ws_upgrade()
353 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_PROTOCOL); in lws_client_ws_upgrade()
596 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_ACCEPT); in lws_client_ws_upgrade()
Dserver-ws.c343 atoi(lws_hdr_simple_ptr(wsi, WSI_TOKEN_VERSION)); in lws_process_ws_upgrade2()
358 lws_hdr_simple_ptr(wsi, WSI_TOKEN_PROTOCOL), 0)) { in lws_process_ws_upgrade2()
666 lws_hdr_simple_ptr(wsi, WSI_TOKEN_KEY)); in handshake_0405()
780 lws_hdr_simple_ptr(wsi, WSI_TOKEN_GET_URI); in handshake_0405()
/third_party/libwebsockets/lib/roles/http/
Ddate.c162 char *p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_RETRY_AFTER); in lws_http_check_retry_after()
194 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_DATE); in lws_http_check_retry_after()
Dparsers.c681 char *lws_hdr_simple_ptr(struct lws *wsi, enum lws_token_indexes h) in lws_hdr_simple_ptr() function
1514 const char *pv = lws_hdr_simple_ptr(wsi, WSI_TOKEN_VERSION); in lws_parse()
1589 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COOKIE); in lws_http_cookie_get()
/third_party/libwebsockets/lib/roles/h2/
Dops-h2.c534 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_METHOD); in rops_check_upgrades_h2()
539 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_COLON_PROTOCOL); in rops_check_upgrades_h2()
806 p = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_METHOD); in lws_h2_bind_for_post_before_action()
812 !lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_PATH)) in lws_h2_bind_for_post_before_action()
823 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_PATH), in lws_h2_bind_for_post_before_action()
827 lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_COLON_PATH), in lws_h2_bind_for_post_before_action()
Dhttp2.c1660 const char *simp = lws_hdr_simple_ptr(h2n->swsi, in lws_h2_parse_end_of_frame()
1774 !lws_hdr_simple_ptr(h2n->swsi, WSI_TOKEN_TE) || in lws_h2_parse_end_of_frame()
1775 strncmp(lws_hdr_simple_ptr(h2n->swsi, WSI_TOKEN_TE), in lws_h2_parse_end_of_frame()
1787 p = lws_hdr_simple_ptr(h2n->swsi, WSI_TOKEN_HTTP_COLON_METHOD); in lws_h2_parse_end_of_frame()
2511 char *meth = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_METHOD), in lws_h2_client_handshake()
2512 *uri = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_URI), *simp; in lws_h2_client_handshake()
2588 simp = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST); in lws_h2_client_handshake()
2707 if (lws_hdr_simple_ptr(wsi, WSI_TOKEN_PROTOCOL)) { in lws_h2_ws_handshake()
2709 (uint8_t *)lws_hdr_simple_ptr(wsi, in lws_h2_ws_handshake()
2711 (int)strlen(lws_hdr_simple_ptr(wsi, in lws_h2_ws_handshake()
[all …]
/third_party/libwebsockets/lib/secure-streams/protocols/
Dss-h1.c326 const char *cp = lws_hdr_simple_ptr(wsi, in lws_extract_metadata()
1066 lws_hdr_simple_ptr(wsi, in secstream_h1()
1071 lws_hdr_simple_ptr(wsi, in secstream_h1()
1080 lws_hdr_simple_ptr(wsi, in secstream_h1()
1089 lws_hdr_simple_ptr(wsi, in secstream_h1()
/third_party/libwebsockets/lib/roles/http/compression/
Dstream.c49 a = lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_ACCEPT_ENCODING); in lws_http_compression_validate()
/third_party/libwebsockets/lib/secure-streams/system/auth-sigv4/
Dsign.c94 add_header(s, "host:", lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_HOST)); in init_sigv4()
218 if (hash_update_str(&hash_ctx, lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_URI)) || in build_sign_string()
/third_party/libwebsockets/lib/core-net/client/
Dconnect2.c289 iface = lws_hdr_simple_ptr(wsi, _WSI_TOKEN_CLIENT_IFACE);
/third_party/libwebsockets/lib/core-net/
Ddummy-callback.c566 if (lws_hdr_simple_ptr(wsi, WSI_TOKEN_HTTP_CONTENT_LENGTH)) in lws_callback_http_dummy()
568 lws_hdr_simple_ptr(wsi, in lws_callback_http_dummy()
Dprivate-lib-core-net.h1074 lws_hdr_simple_ptr(struct lws *wsi, enum lws_token_indexes h);
Dwsi.c1356 return lws_hdr_simple_ptr(wsi, (enum lws_token_indexes)hdr_idx); in lws_wsi_client_stash_item()
/third_party/libwebsockets/lib/secure-streams/
Dpolicy-common.c188 *value = lws_hdr_simple_ptr(h->wsi, n); in lws_ss_get_metadata()
/third_party/libwebsockets/lib/tls/
Dtls-jit-trust.c103 host = lws_hdr_simple_ptr(wsi, in lws_tls_jit_trust_sort_kids()