Home
last modified time | relevance | path

Searched refs:valuelen (Results 1 – 25 of 42) sorted by relevance

12

/third_party/nghttp2/src/
Dcomp_helper.c47 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()
Dh2load_http2_session.cc47 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()
Ddeflatehd.cc169 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()
Dhttp3.cc194 size_t valuelen) { in check_nv() argument
198 if (!nghttp3_check_header_value(value, valuelen)) { in check_nv()
Dhttp2.cc282 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()
Dapp_helper.h47 size_t valuelen, uint8_t flags, void *user_data);
Dhttp2.h117 const uint8_t *value, size_t valuelen,
124 const uint8_t *value, size_t valuelen, bool no_index,
Dhttp3.h117 size_t valuelen);
Dapp_helper.cc391 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/
Dlws_map.c42 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/
Dnghttp2_frame.c902 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 …]
Dnghttp2_hd.c487 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 …]
Dnghttp2_http.c520 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/
Dnghttp2_frame.c976 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 …]
Dnghttp2_hd.c492 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 …]
Dnghttp2_http.c569 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()
Dnghttp2_http.h146 size_t valuelen);
/third_party/nghttp2/tests/
Dnghttp2_test_helper.c119 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()
Dnghttp2_frame_test.c42 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()
Dnghttp2_hd_test.c327 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/
Dlibevent-server.c376 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()
Ddeflate.c106 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()
Dlibevent-client.c181 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/
Dnode_http_common-inl.h53 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/
Dlws-map.h164 const lws_map_value_t value, size_t valuelen);

12