/third_party/nghttp2/src/ |
D | comp_helper.c | 47 dump_val(outent, "value", nv->value, nv->valuelen); in dump_deflate_header_table() 49 json_integer((json_int_t)(nv->namelen + nv->valuelen + in dump_deflate_header_table() 79 dump_val(outent, "value", nv->value, nv->valuelen); in dump_inflate_header_table() 81 json_integer((json_int_t)(nv->namelen + nv->valuelen + in dump_inflate_header_table() 99 size_t valuelen) { in dump_header() argument 107 json_object_set_new(nv_pair, cname, json_pack("s#", value, valuelen)); in dump_header() 119 nva[i].value, nva[i].valuelen)); in dump_headers()
|
D | h2load_http2_session.cc | 47 const uint8_t *value, size_t valuelen, uint8_t flags, in on_header_callback() argument 54 client->on_header(frame->hd.stream_id, name, namelen, value, valuelen); in on_header_callback() 55 client->worker->stats.bytes_head_decomp += namelen + valuelen; in on_header_callback() 61 std::cout.write(reinterpret_cast<const char *>(value), valuelen); in on_header_callback()
|
D | deflatehd.cc | 169 nva[i].valuelen = strlen(json_string_value(value)); in deflate_hd_json() 174 inputlen += nva[i].namelen + nva[i].valuelen; in deflate_hd_json() 279 nv.valuelen = strlen(val); in perform_from_http1text() 284 inputlen += nv.namelen + nv.valuelen; in perform_from_http1text()
|
D | http3.cc | 194 size_t valuelen) { in check_nv() argument 198 if (!nghttp3_check_header_value(value, valuelen)) { in check_nv()
|
D | http2.cc | 282 const uint8_t *value, size_t valuelen, in to_header() argument 285 std::string(reinterpret_cast<const char *>(value), valuelen), in to_header() 290 const uint8_t *value, size_t valuelen, bool no_index, in add_header() argument 292 if (valuelen > 0) { in add_header() 294 for (i = 0; i < valuelen && (value[i] == ' ' || value[i] == '\t'); ++i) in add_header() 296 for (j = valuelen - 1; j > i && (value[j] == ' ' || value[j] == '\t'); --j) in add_header() 299 valuelen -= i + (valuelen - j - 1); in add_header() 301 nva.push_back(to_header(name, namelen, value, valuelen, no_index, token)); in add_header()
|
D | app_helper.h | 47 size_t valuelen, uint8_t flags, void *user_data);
|
D | http2.h | 117 const uint8_t *value, size_t valuelen, 124 const uint8_t *value, size_t valuelen, bool no_index,
|
D | http3.h | 117 size_t valuelen);
|
D | app_helper.cc | 391 size_t valuelen, uint8_t flags, in verbose_on_header_callback() argument 394 namelen, valuelen}; in verbose_on_header_callback()
|
/third_party/libwebsockets/lib/core/ |
D | lws_map.c | 42 size_t valuelen; member 181 const lws_map_value_t value, size_t valuelen) in lws_map_item_create() argument 193 item = map->info._alloc(map, sizeof(*item) + keylen + valuelen); in lws_map_item_create() 199 item->valuelen = valuelen; in lws_map_item_create() 205 memcpy(u, value, valuelen); in lws_map_item_create() 265 return _item->valuelen; in lws_map_item_value_len()
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_frame.c | 902 if (a->namelen != b->namelen || a->valuelen != b->valuelen) { in nghttp2_nv_equal() 914 assert(a->valuelen == 0); in nghttp2_nv_equal() 915 assert(b->valuelen == 0); in nghttp2_nv_equal() 916 } else if (memcmp(a->value, b->value, a->valuelen) != 0) { in nghttp2_nv_equal() 966 return bytes_compar(a->value, a->valuelen, b->value, b->valuelen); in nv_compar() 995 buflen += nva[i].valuelen + 1; in nghttp2_nv_array_copy() 1029 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy() 1031 if (nva[i].valuelen) { in nghttp2_nv_array_copy() 1032 memcpy(data, nva[i].value, nva[i].valuelen); in nghttp2_nv_array_copy() 1035 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy() [all …]
|
D | nghttp2_hd.c | 487 ent->cnv.valuelen = nv->value->len; in nghttp2_hd_entry_init() 507 return a->value->len == b->valuelen && in value_eq() 508 memeq(a->value->base, b->value, b->valuelen); in value_eq() 777 static size_t entry_room(size_t namelen, size_t valuelen) { in entry_room() argument 778 return NGHTTP2_HD_ENTRY_OVERHEAD + namelen + valuelen; in entry_room() 1042 idx, nv->valuelen, indexing_mode); in emit_indname_block() 1061 rv = emit_string(bufs, nv->value, nv->valuelen); in emit_indname_block() 1075 nv->namelen, nv->valuelen, indexing_mode); in emit_newname_block() 1087 rv = emit_string(bufs, nv->value, nv->valuelen); in emit_newname_block() 1181 if (ent->value.len == nv->valuelen && in search_static_table() [all …]
|
D | nghttp2_http.c | 520 if (lstreq("CONNECT", nv->value, nv->valuelen)) { in nghttp2_http_record_request_method() 524 if (lstreq("HEAD", nv->value, nv->valuelen)) { in nghttp2_http_record_request_method()
|
/third_party/nghttp2/lib/ |
D | nghttp2_frame.c | 976 if (a->namelen != b->namelen || a->valuelen != b->valuelen) { in nghttp2_nv_equal() 988 assert(a->valuelen == 0); in nghttp2_nv_equal() 989 assert(b->valuelen == 0); in nghttp2_nv_equal() 990 } else if (memcmp(a->value, b->value, a->valuelen) != 0) { in nghttp2_nv_equal() 1040 return bytes_compar(a->value, a->valuelen, b->value, b->valuelen); in nv_compar() 1069 buflen += nva[i].valuelen + 1; in nghttp2_nv_array_copy() 1103 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy() 1105 if (nva[i].valuelen) { in nghttp2_nv_array_copy() 1106 memcpy(data, nva[i].value, nva[i].valuelen); in nghttp2_nv_array_copy() 1109 p->valuelen = nva[i].valuelen; in nghttp2_nv_array_copy() [all …]
|
D | nghttp2_hd.c | 492 ent->cnv.valuelen = nv->value->len; in nghttp2_hd_entry_init() 512 return a->value->len == b->valuelen && in value_eq() 513 memeq(a->value->base, b->value, b->valuelen); in value_eq() 782 static size_t entry_room(size_t namelen, size_t valuelen) { in entry_room() argument 783 return NGHTTP2_HD_ENTRY_OVERHEAD + namelen + valuelen; in entry_room() 1047 idx, nv->valuelen, indexing_mode); in emit_indname_block() 1066 rv = emit_string(bufs, nv->value, nv->valuelen); in emit_indname_block() 1080 nv->namelen, nv->valuelen, indexing_mode); in emit_newname_block() 1092 rv = emit_string(bufs, nv->value, nv->valuelen); in emit_newname_block() 1186 if (ent->value.len == nv->valuelen && in search_static_table() [all …]
|
D | nghttp2_http.c | 569 if (lstreq("CONNECT", nv->value, nv->valuelen)) { in nghttp2_http_record_request_method() 573 if (lstreq("HEAD", nv->value, nv->valuelen)) { in nghttp2_http_record_request_method() 1213 size_t valuelen) { in nghttp2_http_parse_priority() argument 1214 const uint8_t *p = value, *end = value + valuelen; in nghttp2_http_parse_priority()
|
D | nghttp2_http.h | 146 size_t valuelen);
|
/third_party/nghttp2/tests/ |
D | nghttp2_test_helper.c | 119 return strmemeq(a, nv->value, nv->valuelen); in nvvalueeq() 145 if (nv->valuelen) { in add_out() 146 onv->value = mem->malloc(nv->valuelen, NULL); in add_out() 147 memcpy(onv->value, nv->value, nv->valuelen); in add_out() 152 onv->valuelen = nv->valuelen; in add_out()
|
D | nghttp2_frame_test.c | 42 nv.valuelen = strlen(value); in make_nv() 189 big_hds[i].valuelen = big_vallen; in test_nghttp2_frame_pack_headers_frame_too_large() 652 bignv.valuelen = (1 << 14) - 1; in test_nghttp2_nv_array_copy() 653 bignv.value = mem->malloc(bignv.valuelen, NULL); in test_nghttp2_nv_array_copy() 655 memset(bignv.value, '0', bignv.valuelen); in test_nghttp2_nv_array_copy() 664 CU_ASSERT(nva[0].valuelen == 0); in test_nghttp2_nv_array_copy() 666 CU_ASSERT(nva[1].valuelen == 0); in test_nghttp2_nv_array_copy() 674 CU_ASSERT(nva[0].valuelen == 5); in test_nghttp2_nv_array_copy() 678 CU_ASSERT(nva[1].valuelen == 5); in test_nghttp2_nv_array_copy()
|
D | nghttp2_hd_test.c | 327 nv.valuelen = sizeof(value) - 1; in test_nghttp2_hd_inflate_indname_inc_eviction() 349 CU_ASSERT(sizeof(value) - 1 == out.nva[0].valuelen); in test_nghttp2_hd_inflate_indname_inc_eviction() 458 nv.valuelen = sizeof(value) - 1; in test_nghttp2_hd_inflate_clearall_inc() 490 nv.valuelen = sizeof(value) - 2; in test_nghttp2_hd_inflate_clearall_inc() 539 CU_ASSERT(0 == out.nva[0].valuelen); in test_nghttp2_hd_inflate_zero_length_huffman() 678 nv.valuelen = 4; in test_nghttp2_hd_ringbuf_reserve() 679 nv.value = mem->malloc(nv.valuelen + 1, NULL); in test_nghttp2_hd_ringbuf_reserve() 680 memset(nv.value, 0, nv.valuelen); in test_nghttp2_hd_ringbuf_reserve() 1225 CU_ASSERT(12 + 6 * 2 * 2 + nva[0].namelen + nva[0].valuelen + nva[1].namelen + in test_nghttp2_hd_deflate_bound() 1226 nva[1].valuelen == in test_nghttp2_hd_deflate_bound()
|
/third_party/nghttp2/examples/ |
D | libevent-server.c | 376 static char *percent_decode(const uint8_t *value, size_t valuelen) { in percent_decode() argument 379 res = malloc(valuelen + 1); in percent_decode() 380 if (valuelen > 3) { in percent_decode() 382 for (i = 0, j = 0; i < valuelen - 2;) { in percent_decode() 395 memcpy(res, value, valuelen); in percent_decode() 396 res[valuelen] = '\0'; in percent_decode() 484 size_t valuelen, uint8_t flags, void *user_data) { in on_header_callback() argument 502 for (j = 0; j < valuelen && value[j] != '?'; ++j) in on_header_callback()
|
D | deflate.c | 106 sum += nva[i].namelen + nva[i].valuelen; in deflate() 114 fwrite(nva[i].value, 1, nva[i].valuelen, stdout); in deflate() 191 fwrite(nv.value, 1, nv.valuelen, stderr); in inflate_header_block()
|
D | libevent-client.c | 181 const uint8_t *value, size_t valuelen) { in print_header() argument 184 fwrite(value, 1, valuelen, f); in print_header() 194 print_header(f, nva[i].name, nva[i].namelen, nva[i].value, nva[i].valuelen); in print_headers() 218 size_t valuelen, uint8_t flags, void *user_data) { in on_header_callback() argument 228 print_header(stderr, name, namelen, value, valuelen); in on_header_callback()
|
/third_party/node/src/ |
D | node_http_common-inl.h | 53 nva[0].namelen = nva[0].valuelen = 1; in NgHeaders() 62 nva[n].valuelen = strlen(p); in NgHeaders() 63 p += nva[n].valuelen + 1; in NgHeaders()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-map.h | 164 const lws_map_value_t value, size_t valuelen);
|