Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 44) sorted by relevance

12

/lighttpd1.4/src/
H A Dhttp_header.c232 light_bset(r->resp_htags, id); in http_header_response_set_ptr()
242 if (id > HTTP_HEADER_OTHER) light_bclr(r->resp_htags, id); in http_header_response_unset()
255 : (id > HTTP_HEADER_OTHER ? light_bclr(r->resp_htags, id) : 0); in http_header_response_set()
261 light_bset(r->resp_htags, id); in http_header_response_append()
268 UNUSED(id); in http_header_response_insert_addtl()
282 light_bset(r->resp_htags, id); in http_header_response_insert()
299 light_bset(r->rqst_htags, id); in http_header_request_set_ptr()
309 if (id > HTTP_HEADER_OTHER) light_bclr(r->rqst_htags, id); in http_header_request_unset()
322 : (id > HTTP_HEADER_OTHER ? light_bclr(r->rqst_htags, id) : 0); in http_header_request_set()
328 light_bset(r->rqst_htags, id); in http_header_request_append()
[all …]
H A Dhttp_header.h116 buffer * http_header_response_get(const request_st *r, enum http_header_e id, const char *k, uint32…
118 buffer * http_header_response_set_ptr(request_st *r, enum http_header_e id, const char *k, uint32_t…
119 void http_header_response_unset(request_st *r, enum http_header_e id, const char *k, uint32_t klen);
120 void http_header_response_set(request_st *r, enum http_header_e id, const char *k, uint32_t klen, c…
121 void http_header_response_append(request_st *r, enum http_header_e id, const char *k, uint32_t klen…
122 void http_header_response_insert(request_st *r, enum http_header_e id, const char *k, uint32_t klen…
125 buffer * http_header_request_get(const request_st *r, enum http_header_e id, const char *k, uint32_…
127 buffer * http_header_request_set_ptr(request_st *r, enum http_header_e id, const char *k, uint32_t …
128 void http_header_request_unset(request_st *r, enum http_header_e id, const char *k, uint32_t klen);
129 void http_header_request_set(request_st *r, enum http_header_e id, const char *k, uint32_t klen, co…
[all …]
H A Drequest.c378 switch (id) { in http_request_parse_duplicate()
419 switch (id) { in http_request_parse_single_header()
444 if (light_btst(r->rqst_htags, id)) in http_request_parse_single_header()
497 http_header_request_append(r, id, k, klen, v, vlen); in http_request_parse_single_header()
678 hpctx->id = HTTP_HEADER_H2_PATH; in http_request_parse_header()
688 hpctx->id = HTTP_HEADER_H2_PROTOCOL; in http_request_parse_header()
697 if (hpctx->id >= HTTP_HEADER_H2_UNKNOWN) in http_request_parse_header()
702 switch (hpctx->id) { in http_request_parse_header()
812 const enum http_header_e id = (enum http_header_e)hpctx->id; in http_request_parse_header() local
814 if (__builtin_expect( (id == HTTP_HEADER_TE), 0) in http_request_parse_header()
[all …]
H A Dh2.c532 if (h2c->h2_cid < id) { in h2_recv_rst_stream()
731 if (prio == id) { in h2_recv_priority()
745 if (prio == id) { in h2_recv_priority()
764 if (0 == id) in h2_recv_window_update()
801 if (0 == id) in h2_recv_window_update()
992 if (0 == id || h2c->h2_cid < id) { /*(RST_STREAM id must not be 0)*/ in h2_recv_data()
1229 if (id != h2_u32(s+n+5)) { in h2_recv_continuation()
1529 if (id > h2c->h2_cid) { in h2_recv_headers()
1540 r->h2id = id; in h2_recv_headers()
1628 h2c->h2_cid = id; in h2_recv_headers()
[all …]
H A Dmod_setenv.c185 handler_ctx *hctx = r->plugin_ctx[p->id]; in URIHANDLER_FUNC()
187 r->plugin_ctx[p->id] = hctx = handler_ctx_init(); in URIHANDLER_FUNC()
220 handler_ctx *hctx = r->plugin_ctx[p->id]; in REQUEST_FUNC()
249 handler_ctx *hctx = r->plugin_ctx[p->id]; in REQUEST_FUNC()
277 void ** const hctx = r->plugin_ctx+((plugin_data_base *)p_d)->id; in REQUEST_FUNC()
H A Dreqpool.c163 if (NULL == r->plugin_ctx[pd->id]
164 && NULL == r->con->plugin_ctx[pd->id]) continue;
167 r->plugin_ctx[pd->id] = NULL;
168 r->con->plugin_ctx[pd->id] = NULL;
H A Dmod_mbedtls.c2332 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
2387 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
2432 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
3350 mod_mbedtls_ssl_is_weak_ciphersuite (int id) in mod_mbedtls_ssl_is_weak_ciphersuite() argument
3354 if (id == suite_RC4[i]) return 1; in mod_mbedtls_ssl_is_weak_ciphersuite()
3359 if (id == suite_weak[i]) return 1; in mod_mbedtls_ssl_is_weak_ciphersuite()
3363 if (id == suite_null[i]) return 1; in mod_mbedtls_ssl_is_weak_ciphersuite()
3442 if (0 == id) { in mod_mbedtls_ssl_conf_ciphersuites()
3466 ids[++nids] = id; in mod_mbedtls_ssl_conf_ciphersuites()
3971 ids[++nids] = id; in mod_mbedtls_ssl_append_curve()
[all …]
H A Dmod_extforward.c532 handler_ctx ** const hctx = (handler_ctx **)&con->plugin_ctx[p->id]; in is_connection_trusted_cached()
564 if (!r->plugin_ctx[p->id]) { in mod_extforward_set_addr()
565 handler_rctx * const rctx = r->plugin_ctx[p->id] = handler_rctx_init(); in mod_extforward_set_addr()
1051 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in URIHANDLER_FUNC()
1082 if (r->plugin_ctx[p->id]) return HANDLER_GO_ON; in URIHANDLER_FUNC()
1129 (handler_rctx **)&r->plugin_ctx[((plugin_data *)p_d)->id]; in REQUEST_FUNC()
1149 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
1151 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
1172 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
1581 con->plugin_ctx[mod_extforward_plugin_data_singleton->id]; in mod_extforward_hap_PROXY_v2()
[all …]
H A Dmod_rewrite.c275 r->plugin_ctx[((plugin_data *)p_d)->id] = NULL; in URIHANDLER_FUNC()
284 if (r->plugin_ctx[p->id]) { in process_rewrite_rules()
285 uintptr_t * const hctx = (uintptr_t *)(r->plugin_ctx + p->id); in process_rewrite_rules()
309 uintptr_t * const hctx = (uintptr_t *)(r->plugin_ctx + p->id); in process_rewrite_rules()
H A Dmod_vhostdb.c242 if ((ve = r->plugin_ctx[p->id])) { in REQUEST_FUNC()
243 r->plugin_ctx[p->id] = NULL; in REQUEST_FUNC()
277 ve = r->plugin_ctx[p->id]; in REQUEST_FUNC()
312 r->plugin_ctx[p->id] = ve; in REQUEST_FUNC()
H A Dgw_backend.h32 uint32_t id; /* id will be between 1 and max_procs */ member
79 const buffer *id; member
H A Dmod_magnet.c1568 const int id = http_header_hkey_get(k, (uint32_t)klen); in magnet_reqhdr_get() local
1580 switch (id) { in magnet_reqhdr_set()
1632 : http_header_request_unset(r, id, k.ptr, k.len); in magnet_reqhdr_set()
1647 const int id = http_header_hkey_get(k, (uint32_t)klen); in magnet_resphdr_get() local
1657 switch (id) { in magnet_resphdr_set_kv()
1677 http_header_response_unset(r, id, k.ptr, k.len); in magnet_resphdr_set_kv()
1905 magnet_env_get_laddr_by_id (request_st * const r, const int id) in magnet_env_get_laddr_by_id() argument
1909 switch (id) { in magnet_env_get_laddr_by_id()
1949 switch (id) { in magnet_env_get_buffer_by_id()
1975 return magnet_env_get_laddr_by_id(r, id); in magnet_env_get_buffer_by_id()
[all …]
H A Dmod_wolfssl.c1476 OCSP_CERTID *id = (NULL != pc->ssl_pemfile_chain) in mod_openssl_ocsp_next_update()
1480 if (id == NULL) { in mod_openssl_ocsp_next_update()
1486 OCSP_CERTID_free(id); in mod_openssl_ocsp_next_update()
3005 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
3044 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
3164 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
3166 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
3333 if (r->plugin_ctx[p->id]) return HANDLER_GO_ON; in REQUEST_FUNC()
3334 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
3336 r->plugin_ctx[p->id] = (void *)(uintptr_t)1u; in REQUEST_FUNC()
[all …]
H A Dgw_backend.c52 len = buffer_clen(host->id); in gw_status_get_counter()
55 memcpy(label+llen, host->id->ptr, len); in gw_status_get_counter()
140 proc->port = host->port + proc->id; in gw_proc_init_portpath()
153 buffer_append_int(proc->unixsocket, proc->id); in gw_proc_init_portpath()
170 proc->id = host->max_id++; in gw_proc_init()
1360 host->id = &da_host->key; in gw_set_defaults_backend()
1827 r->plugin_ctx[p->id] = NULL; in gw_connection_close()
1851 gw_handler_ctx *hctx = r->plugin_ctx[p->id]; in gw_handle_request_reset()
2148 gw_handler_ctx *hctx = r->plugin_ctx[p->id]; in gw_handle_subrequest()
2482 hctx = r->plugin_ctx[p->id]; in gw_check_extension()
[all …]
H A Dplugin.h35 #define PLUGIN_DATA int id; \
H A Dmod_gnutls.c2373 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_write_cq_ssl()
2459 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_write_cq_ssl_ktls()
2545 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_read_cq_ssl()
2605 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
2681 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
2723 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
2725 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
2942 if (r->plugin_ctx[p->id]) return HANDLER_GO_ON; in REQUEST_FUNC()
2943 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
2945 r->plugin_ctx[p->id] = (void *)(uintptr_t)1u; in REQUEST_FUNC()
[all …]
H A Dhttp-header-glue.c900 const enum http_header_e id = http_header_hkey_get(k, klen); in http_response_process_headers() local
908 if (id == HTTP_HEADER_STATUS) { in http_response_process_headers()
923 else if (id == HTTP_HEADER_OTHER && klen > 9 && (k[0] & 0xdf) == 'V' in http_response_process_headers()
930 switch (id) { in http_response_process_headers()
1028 http_header_response_insert(r, id, k, klen, value, end - value); in http_response_process_headers()
H A Dmod_openssl.c3033 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_write_cq_ssl()
3088 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_write_cq_ssl_ktls()
3125 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_read_cq_ssl()
3305 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
3344 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
3464 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
3466 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
3618 if (r->plugin_ctx[p->id]) return HANDLER_GO_ON; in REQUEST_FUNC()
3619 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
3621 r->plugin_ctx[p->id] = (void *)(uintptr_t)1u; in REQUEST_FUNC()
[all …]
H A Dmod_maxminddb.c459 handler_ctx ** const hctx = (handler_ctx **)&r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
505 (handler_ctx **)&con->plugin_ctx[((plugin_data *)p_d)->id]; in CONNECTION_FUNC()
H A Dmod_nss.c2177 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_write_cq_ssl()
2243 handler_ctx * const hctx = con->plugin_ctx[plugin_data_singleton->id]; in connection_read_cq_ssl()
2308 con->plugin_ctx[p->id] = hctx; in CONNECTION_FUNC()
2401 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
2439 handler_ctx *hctx = con->plugin_ctx[p->id]; in CONNECTION_FUNC()
2441 con->plugin_ctx[p->id] = NULL; in CONNECTION_FUNC()
2641 if (r->plugin_ctx[p->id]) return HANDLER_GO_ON; in REQUEST_FUNC()
2642 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
2644 r->plugin_ctx[p->id] = (void *)(uintptr_t)1u; in REQUEST_FUNC()
2665 handler_ctx *hctx = r->con->plugin_ctx[p->id]; in REQUEST_FUNC()
[all …]
H A Dmod_sockproxy.c159 handler_ctx *hctx = r->plugin_ctx[p->id]; in mod_sockproxy_connection_accept()
H A Drequest.h215 int8_t id; member
H A Dmod_proxy.c862 if (hctx->conf.replace_http_host && !buffer_is_blank(hctx->gw.host->id)) { in proxy_create_env()
865 "proxy - using \"%s\" as HTTP Host", hctx->gw.host->id->ptr); in proxy_create_env()
868 BUF_PTR_LEN(hctx->gw.host->id)); in proxy_create_env()
1130 handler_ctx *hctx = r->plugin_ctx[p->id]; in mod_proxy_check_extension()
/lighttpd1.4/doc/outdated/
H A Drewrite.txt58 url.rewrite-once = ( "^/id/([0-9]+)$" => "/index.php?id=$1",
/lighttpd1.4/src/ls-hpack/
H A Dlshpack.c549 unsigned buckno, id; in henc_find_table_id() local
560 id = input->hpack_index - 1; in henc_find_table_id()
569 if (id <= LSHPACK_HDR_ACCEPT_ENCODING || input->val_len == 0) in henc_find_table_id()
571 if (static_table[id].val_len == input->val_len in henc_find_table_id()
572 && memcmp(val_ptr, static_table[id].val, input->val_len) == 0) in henc_find_table_id()
581 name = static_table[id].name; in henc_find_table_id()
582 name_len = static_table[id].name_len; in henc_find_table_id()
586 input->name_hash = static_table_name_hash[id]; in henc_find_table_id()
588 assert(input->name_hash == static_table_name_hash[id]); in henc_find_table_id()

12