/third_party/node/deps/ngtcp2/nghttp3/lib/ |
H A D | nghttp3_frame.c | 124 int nghttp3_nva_copy(nghttp3_nv **pnva, const nghttp3_nv *nva, size_t nvlen, in nghttp3_nva_copy() argument 139 if ((nva[i].flags & NGHTTP3_NV_FLAG_NO_COPY_NAME) == 0) { in nghttp3_nva_copy() 140 buflen += nva[i].namelen + 1; in nghttp3_nva_copy() 142 if ((nva[i].flags & NGHTTP3_NV_FLAG_NO_COPY_VALUE) == 0) { in nghttp3_nva_copy() 143 buflen += nva[i].valuelen + 1; in nghttp3_nva_copy() 159 p->flags = nva[i].flags; in nghttp3_nva_copy() 161 if (nva[i].flags & NGHTTP3_NV_FLAG_NO_COPY_NAME) { in nghttp3_nva_copy() 162 p->name = nva[i].name; in nghttp3_nva_copy() 163 p->namelen = nva[i].namelen; in nghttp3_nva_copy() 165 if (nva[ in nghttp3_nva_copy() 193 nghttp3_nva_del(nghttp3_nv *nva, const nghttp3_mem *mem) nghttp3_nva_del() argument [all...] |
H A D | nghttp3_frame.h | 69 nghttp3_nv *nva; member 186 * nghttp3_nva_copy copies name/value pairs from |nva|, which contains 200 int nghttp3_nva_copy(nghttp3_nv **pnva, const nghttp3_nv *nva, size_t nvlen, 204 * nghttp3_nva_del frees |nva|. 206 void nghttp3_nva_del(nghttp3_nv *nva, const nghttp3_mem *mem); 210 * assumes that fr->nva is created by nghttp3_nva_copy() or NULL.
|
/third_party/nghttp2/src/ |
H A D | shrpx_http2_downstream_connection.cc | 203 std::vector<nghttp2_nv> nva; in http2_data_read_callback() local 204 nva.reserve(trailers.size()); in http2_data_read_callback() 205 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in http2_data_read_callback() 206 if (!nva.empty()) { in http2_data_read_callback() 207 rv = nghttp2_submit_trailer(session, stream_id, nva.data(), nva.size()); in http2_data_read_callback() 292 auto nva = std::vector<nghttp2_nv>(); in push_request_headers() local 293 nva.reserve(req.fs.headers().size() + 11 + num_cookies + in push_request_headers() 297 nva.push_back(http2::make_nv_ll(":method", "CONNECT")); in push_request_headers() 298 nva in push_request_headers() [all...] |
H A D | deflatehd.cc | 81 const std::vector<nghttp2_nv> &nva, int seq) { in output_to_json() 98 json_object_set_new(obj, "headers", dump_headers(nva.data(), nva.size())); in output_to_json() 114 const std::vector<nghttp2_nv> &nva, size_t inputlen, in deflate_hd() 120 (nghttp2_nv *)nva.data(), nva.size()); in deflate_hd() 129 output_to_json(deflater, buf.data(), rv, inputlen, nva, seq); in deflate_hd() 147 auto nva = std::vector<nghttp2_nv>(len); in deflate_hd_json() local 160 nva[i].name = (uint8_t *)name; in deflate_hd_json() 161 nva[ in deflate_hd_json() 79 output_to_json(nghttp2_hd_deflater *deflater, const uint8_t *buf, size_t buflen, size_t inputlen, const std::vector<nghttp2_nv> &nva, int seq) output_to_json() argument 113 deflate_hd(nghttp2_hd_deflater *deflater, const std::vector<nghttp2_nv> &nva, size_t inputlen, int seq) deflate_hd() argument 247 std::vector<nghttp2_nv> nva; perform_from_http1text() local [all...] |
H A D | http2_test.cc | 58 auto nva = Headers(); in test_http2_add_header() local 60 http2::add_header(nva, (const uint8_t *)"alpha", 5, (const uint8_t *)"123", 3, in test_http2_add_header() 62 CU_ASSERT(Headers::value_type("alpha", "123") == nva[0]); in test_http2_add_header() 63 CU_ASSERT(!nva[0].no_index); in test_http2_add_header() 65 nva.clear(); in test_http2_add_header() 67 http2::add_header(nva, (const uint8_t *)"alpha", 5, (const uint8_t *)"", 0, in test_http2_add_header() 69 CU_ASSERT(Headers::value_type("alpha", "") == nva[0]); in test_http2_add_header() 70 CU_ASSERT(nva[0].no_index); in test_http2_add_header() 72 nva.clear(); in test_http2_add_header() 74 http2::add_header(nva, (cons in test_http2_add_header() 110 auto nva = Headers{{"alpha", "1"}, {"bravo", "2"}, {"bravo", "3"}, test_http2_get_header() local 176 std::vector<nghttp2_nv> nva; test_http2_copy_headers_to_nva() local [all...] |
H A D | shrpx_http2_upstream.cc | 319 auto &nva = req.fs.headers(); in on_request_headers() local 323 for (auto &nv : nva) { in on_request_headers() 339 http2::dump_nv(dump.request_header, nva); in on_request_headers() 739 auto &nv = frame->push_promise.nva[i]; in on_frame_send_callback() 1480 std::vector<nghttp2_nv> nva; in downstream_data_read_callback() local 1481 nva.reserve(trailers.size()); in downstream_data_read_callback() 1482 http2::copy_headers_to_nva_nocopy(nva, trailers, http2::HDOP_STRIP_ALL); in downstream_data_read_callback() 1483 if (!nva.empty()) { in downstream_data_read_callback() 1484 rv = nghttp2_submit_trailer(session, stream_id, nva.data(), in downstream_data_read_callback() 1485 nva in downstream_data_read_callback() 1526 auto nva = std::vector<nghttp2_nv>(); send_reply() local 1603 auto nva = std::array<nghttp2_nv, 5>{ error_reply() local 1738 auto nva = std::vector<nghttp2_nv>(); on_downstream_header_complete() local 2193 std::vector<nghttp2_nv> nva; submit_push_promise() local 2352 std::vector<nghttp2_nv> nva; on_downstream_push_promise_complete() local [all...] |
H A D | http2.h | 120 // Add name/value pairs to |nva|. If |no_index| is true, this 123 void add_header(Headers &nva, const uint8_t *name, size_t namelen, 127 // Returns pointer to the entry in |nva| which has name |name|. If 129 // in |nva| is returned. If no such entry exist, returns nullptr. 130 const Headers::value_type *get_header(const Headers &nva, const char *name); 231 void copy_headers_to_nva(std::vector<nghttp2_nv> &nva, 236 void copy_headers_to_nva_nocopy(std::vector<nghttp2_nv> &nva, 262 // Dumps name/value pairs in |nva| to |out|. 263 void dump_nv(FILE *out, const nghttp2_nv *nva, size_t nvlen); 265 // Dumps name/value pairs in |nva| t [all...] |
H A D | http3.cc | 82 void copy_headers_to_nva_internal(std::vector<nghttp3_nv> &nva, in copy_headers_to_nva_internal() argument 175 nva.push_back( in copy_headers_to_nva_internal() 181 void copy_headers_to_nva(std::vector<nghttp3_nv> &nva, in copy_headers_to_nva() argument 183 copy_headers_to_nva_internal(nva, headers, NGHTTP3_NV_FLAG_NONE, flags); in copy_headers_to_nva() 186 void copy_headers_to_nva_nocopy(std::vector<nghttp3_nv> &nva, in copy_headers_to_nva_nocopy() argument 189 nva, headers, in copy_headers_to_nva_nocopy()
|
H A D | comp_helper.c | 112 json_t *dump_headers(const nghttp2_nv *nva, size_t nvlen) { in dump_headers() argument 118 json_array_append_new(headers, dump_header(nva[i].name, nva[i].namelen, in dump_headers() 119 nva[i].value, nva[i].valuelen)); in dump_headers()
|
H A D | shrpx_http3_upstream.cc | 1327 auto nva = std::vector<nghttp3_nv>(); in on_downstream_header_complete() local 1330 nva.reserve(resp.fs.headers().size() + 4 + in on_downstream_header_complete() 1336 nva.push_back(http3::make_nv_ls_nocopy(":status", response_status)); in on_downstream_header_complete() 1338 http3::copy_headers_to_nva_nocopy(nva, resp.fs.headers(), in on_downstream_header_complete() 1342 log_response_headers(downstream, nva); in on_downstream_header_complete() 1346 nva.data(), nva.size()); in on_downstream_header_complete() 1368 nva.push_back(http3::make_nv_ls_nocopy(":status", response_status)); in on_downstream_header_complete() 1370 http3::copy_headers_to_nva_nocopy(nva, resp.fs.headers(), striphd_flags); in on_downstream_header_complete() 1373 nva in on_downstream_header_complete() 1490 std::vector<nghttp3_nv> nva; on_downstream_body_complete() local 1697 auto nva = std::vector<nghttp3_nv>(); send_reply() local 2212 auto &nva = req.fs.headers(); http_end_request_headers() local 2715 auto nva = std::array<nghttp3_nv, 5>{ error_reply() local [all...] |
H A D | HttpServer.cc | 937 auto nva = make_array(http2::make_nv_ls_nocopy(":status", status), in submit_file_response() local 945 nva[nvlen++] = http2::make_nv_ls_nocopy( in submit_file_response() 951 nva[nvlen++] = http2::make_nv_ls("last-modified", last_modified_str); in submit_file_response() 954 nva[nvlen++] = http2::make_nv_ls("content-type", *content_type); in submit_file_response() 958 nva[nvlen++] = http2::make_nv_ls_nocopy("trailer", trailer_names); in submit_file_response() 960 return nghttp2_submit_response(session_, stream->stream_id, nva.data(), nvlen, in submit_file_response() 967 auto nva = std::vector<nghttp2_nv>(); in submit_response() local 968 nva.reserve(4 + headers.size()); in submit_response() 969 nva.push_back(http2::make_nv_ls_nocopy(":status", status)); in submit_response() 970 nva in submit_response() 990 auto nva = make_array(http2::make_nv_ls_nocopy(":status", status), submit_response() local 1009 auto nva = make_array(http2::make_nv_ls(":status", status)); submit_non_final_response() local 1025 auto nva = make_array(http2::make_nv_ll(":method", "GET"), submit_push_promise() local 1111 std::vector<nghttp2_nv> nva; file_read_callback() local [all...] |
H A D | http2.cc | 289 void add_header(Headers &nva, const uint8_t *name, size_t namelen, in add_header() argument 301 nva.push_back(to_header(name, namelen, value, valuelen, no_index, token)); in add_header() 304 const Headers::value_type *get_header(const Headers &nva, const char *name) { in get_header() argument 306 for (auto &nv : nva) { in get_header() 369 void copy_headers_to_nva_internal(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva_internal() argument 462 nva.push_back( in copy_headers_to_nva_internal() 468 void copy_headers_to_nva(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva() argument 470 copy_headers_to_nva_internal(nva, headers, NGHTTP2_NV_FLAG_NONE, flags); in copy_headers_to_nva() 473 void copy_headers_to_nva_nocopy(std::vector<nghttp2_nv> &nva, in copy_headers_to_nva_nocopy() argument 476 nva, header in copy_headers_to_nva_nocopy() 601 dump_nv(FILE *out, const nghttp2_nv *nva, size_t nvlen) dump_nv() argument 610 dump_nv(FILE *out, const Headers &nva) dump_nv() argument 618 dump_nv(FILE *out, const HeaderRefs &nva) dump_nv() argument [all...] |
/third_party/nghttp2/tests/ |
H A D | nghttp2_hd_test.c | 70 assert_nv_equal(nva1, out.nva, 3, mem); in test_nghttp2_hd_deflate() 84 assert_nv_equal(nva2, out.nva, 2, mem); in test_nghttp2_hd_deflate() 99 assert_nv_equal(nva3, out.nva, 3, mem); in test_nghttp2_hd_deflate() 113 assert_nv_equal(nva4, out.nva, 3, mem); in test_nghttp2_hd_deflate() 127 assert_nv_equal(nva5, out.nva, 2, mem); in test_nghttp2_hd_deflate() 166 assert_nv_equal(nva1, out.nva, 2, mem); in test_nghttp2_hd_deflate_same_indexed_repr() 180 assert_nv_equal(nva2, out.nva, 3, mem); in test_nghttp2_hd_deflate_same_indexed_repr() 214 assert_nv_equal(&nv, out.nva, 1, mem); in test_nghttp2_hd_inflate_indexed() 260 assert_nv_equal(&nv[i], out.nva, 1, mem); in test_nghttp2_hd_inflate_indname_noinc() 295 assert_nv_equal(&nv, out.nva, in test_nghttp2_hd_inflate_indname_inc() 715 nghttp2_nv nva[] = {MAKE_NV("alpha", "bravo"), MAKE_NV("charlie", "delta")}; test_nghttp2_hd_change_table_size() local 975 check_deflate_inflate(nghttp2_hd_deflater *deflater, nghttp2_hd_inflater *inflater, nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) check_deflate_inflate() argument 1165 nghttp2_nv nva[] = { test_nghttp2_hd_no_index() local 1213 nghttp2_nv nva[] = {MAKE_NV(":method", "GET"), MAKE_NV("alpha", "bravo")}; test_nghttp2_hd_deflate_bound() local 1244 nghttp2_nv nva[] = {MAKE_NV("alpha", "bravo"), MAKE_NV("charlie", "delta")}; test_nghttp2_hd_public_api() local 1286 nghttp2_nv nva[] = { test_nghttp2_hd_deflate_hd_vec() local [all...] |
H A D | nghttp2_frame_test.c | 51 nghttp2_nv *nva = mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in headers() local 52 nva[0] = make_nv("method", "GET"); in headers() 53 nva[1] = make_nv("scheme", "https"); in headers() 54 nva[2] = make_nv("url", "/"); in headers() 55 nva[3] = make_nv("x-head", "foo"); in headers() 56 nva[4] = make_nv("x-head", "bar"); in headers() 57 nva[5] = make_nv("version", "HTTP/1.1"); in headers() 58 nva[6] = make_nv("x-empty", ""); in headers() 59 return nva; in headers() 76 nghttp2_nv *nva; in test_nghttp2_frame_pack_headers() local 172 nghttp2_nv *nva; test_nghttp2_frame_pack_headers_frame_too_large() local 314 nghttp2_nv *nva; test_nghttp2_frame_pack_push_promise() local 630 nghttp2_nv *nva; test_nghttp2_nv_array_copy() local [all...] |
H A D | nghttp2_test_helper.c | 122 memset(out->nva, 0, sizeof(out->nva)); in nva_out_init() 129 mem->free(out->nva[i].name, NULL); in nva_out_reset() 130 mem->free(out->nva[i].value, NULL); in nva_out_reset() 132 memset(out->nva, 0, sizeof(out->nva)); in nva_out_reset() 137 nghttp2_nv *onv = &out->nva[out->nvlen]; in add_out() 217 int32_t stream_id, uint8_t flags, const nghttp2_nv *nva, in pack_headers() 223 nghttp2_nv_array_copy(&dnva, nva, nvlen, mem); in pack_headers() 236 int32_t promised_stream_id, const nghttp2_nv *nva, in pack_push_promise() 216 pack_headers(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, int32_t stream_id, uint8_t flags, const nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) pack_headers() argument 234 pack_push_promise(nghttp2_bufs *bufs, nghttp2_hd_deflater *deflater, int32_t stream_id, uint8_t flags, int32_t promised_stream_id, const nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) pack_push_promise() argument [all...] |
H A D | failmalloc_test.c | 289 nghttp2_nv *nva; in run_nghttp2_session_recv() local 341 nghttp2_nv_array_copy(&nva, nv, nvlen, nghttp2_mem_fm()); in run_nghttp2_session_recv() 343 NGHTTP2_HCAT_REQUEST, NULL, nva, nvlen); in run_nghttp2_session_recv() 402 nghttp2_nv *nva; in run_nghttp2_frame_pack_headers() local 420 rv = nghttp2_nv_array_copy(&nva, nv, nvlen, nghttp2_mem_fm()); in run_nghttp2_frame_pack_headers() 425 NGHTTP2_HCAT_REQUEST, NULL, nva, nvlen); in run_nghttp2_frame_pack_headers() 502 nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) { in deflate_inflate() 505 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, nva, nvlen); in deflate_inflate() 500 deflate_inflate(nghttp2_hd_deflater *deflater, nghttp2_hd_inflater *inflater, nghttp2_bufs *bufs, nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) deflate_inflate() argument
|
/third_party/nghttp2/fuzz/ |
H A D | fuzz_frames.cc | 40 nghttp2_nv *nva; in check_frame_pack_headers() local 56 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in check_frame_pack_headers() 58 nva[i] = fuzz_make_nv(data_provider->ConsumeRandomLengthString(30), in check_frame_pack_headers() 66 NGHTTP2_HCAT_REQUEST, &pri_spec, nva, nvlen); in check_frame_pack_headers() 79 rv = nghttp2_nv_array_copy(&nva2, nva, nvlen, mem); in check_frame_pack_headers() 86 fuzz_free_nv(&nva[i]); in check_frame_pack_headers() 100 nghttp2_nv *nva; in check_frame_push_promise() local 116 nva = (nghttp2_nv *)mem->malloc(sizeof(nghttp2_nv) * HEADERS_LENGTH, NULL); in check_frame_push_promise() 118 nva[i] = fuzz_make_nv(data_provider->ConsumeRandomLengthString(30), in check_frame_push_promise() 126 (1U << 31) - 1, nva, nvle in check_frame_push_promise() [all...] |
/third_party/nghttp2/examples/ |
H A D | deflate.c | 41 nghttp2_hd_inflater *inflater, const nghttp2_nv *const nva, 94 nghttp2_hd_inflater *inflater, const nghttp2_nv *const nva, in deflate() 106 sum += nva[i].namelen + nva[i].valuelen; in deflate() 112 fwrite(nva[i].name, 1, nva[i].namelen, stdout); in deflate() 114 fwrite(nva[i].value, 1, nva[i].valuelen, stdout); in deflate() 118 buflen = nghttp2_hd_deflate_bound(deflater, nva, nvlen); in deflate() 121 rv = nghttp2_hd_deflate_hd(deflater, buf, buflen, nva, nvle in deflate() 93 deflate(nghttp2_hd_deflater *deflater, nghttp2_hd_inflater *inflater, const nghttp2_nv *const nva, size_t nvlen) deflate() argument [all...] |
H A D | client.c | 226 const nghttp2_nv *nva = frame->headers.nva; in on_frame_send_callback() local 229 fwrite(nva[i].name, 1, nva[i].namelen, stdout); in on_frame_send_callback() 231 fwrite(nva[i].value, 1, nva[i].valuelen, stdout); in on_frame_send_callback() 254 const nghttp2_nv *nva = frame->headers.nva; in on_frame_recv_callback() local 260 fwrite(nva[i].name, 1, nva[ in on_frame_recv_callback() 483 const nghttp2_nv nva[] = {MAKE_NV(":method", "GET"), submit_request() local [all...] |
/third_party/nghttp2/lib/ |
H A D | nghttp2_frame.c | 65 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_headers_init() 68 frame->nva = nva; in nghttp2_frame_headers_init() 80 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_headers_free() 116 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_push_promise_init() 119 frame->nva = nva; in nghttp2_frame_push_promise_init() 127 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_push_promise_free() 377 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen); in nghttp2_frame_pack_headers() 429 frame->nva in nghttp2_frame_unpack_headers_payload() 62 nghttp2_frame_headers_init(nghttp2_headers *frame, uint8_t flags, int32_t stream_id, nghttp2_headers_category cat, const nghttp2_priority_spec *pri_spec, nghttp2_nv *nva, size_t nvlen) nghttp2_frame_headers_init() argument 113 nghttp2_frame_push_promise_init(nghttp2_push_promise *frame, uint8_t flags, int32_t stream_id, int32_t promised_stream_id, nghttp2_nv *nva, size_t nvlen) nghttp2_frame_push_promise_init() argument 982 nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) nghttp2_nv_array_del() argument 1031 nghttp2_nv_array_sort(nghttp2_nv *nva, size_t nvlen) nghttp2_nv_array_sort() argument 1035 nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) nghttp2_nv_array_copy() argument [all...] |
H A D | nghttp2_submit.c | 145 const nghttp2_nv *nva, size_t nvlen, in submit_headers_shared_nva() 162 rv = nghttp2_nv_array_copy(&nva_copy, nva, nvlen, mem); in submit_headers_shared_nva() 172 const nghttp2_nv *nva, size_t nvlen) { in nghttp2_submit_trailer() 178 stream_id, NULL, nva, nvlen, NULL, in nghttp2_submit_trailer() 185 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_headers() 211 return submit_headers_shared_nva(session, flags, stream_id, pri_spec, nva, in nghttp2_submit_headers() 316 int32_t stream_id, const nghttp2_nv *nva, in nghttp2_submit_push_promise() 354 rv = nghttp2_nv_array_copy(&nva_copy, nva, nvlen, mem); in nghttp2_submit_push_promise() 758 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_request() 780 return submit_headers_shared_nva(session, flags, -1, pri_spec, nva, nvle in nghttp2_submit_request() 142 submit_headers_shared_nva(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, void *stream_user_data) submit_headers_shared_nva() argument 171 nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen) nghttp2_submit_trailer() argument 182 nghttp2_submit_headers(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, void *stream_user_data) nghttp2_submit_headers() argument 315 nghttp2_submit_push_promise(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen, void *promised_stream_user_data) nghttp2_submit_push_promise() argument 756 nghttp2_submit_request(nghttp2_session *session, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, void *stream_user_data) nghttp2_submit_request() argument 792 nghttp2_submit_response(nghttp2_session *session, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd) nghttp2_submit_response() argument [all...] |
/third_party/node/deps/nghttp2/lib/ |
H A D | nghttp2_frame.c | 65 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_headers_init() 68 frame->nva = nva; in nghttp2_frame_headers_init() 80 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_headers_free() 116 nghttp2_nv *nva, size_t nvlen) { in nghttp2_frame_push_promise_init() 119 frame->nva = nva; in nghttp2_frame_push_promise_init() 127 nghttp2_nv_array_del(frame->nva, mem); in nghttp2_frame_push_promise_free() 377 rv = nghttp2_hd_deflate_hd_bufs(deflater, bufs, frame->nva, frame->nvlen); in nghttp2_frame_pack_headers() 429 frame->nva in nghttp2_frame_unpack_headers_payload() 62 nghttp2_frame_headers_init(nghttp2_headers *frame, uint8_t flags, int32_t stream_id, nghttp2_headers_category cat, const nghttp2_priority_spec *pri_spec, nghttp2_nv *nva, size_t nvlen) nghttp2_frame_headers_init() argument 113 nghttp2_frame_push_promise_init(nghttp2_push_promise *frame, uint8_t flags, int32_t stream_id, int32_t promised_stream_id, nghttp2_nv *nva, size_t nvlen) nghttp2_frame_push_promise_init() argument 982 nghttp2_nv_array_del(nghttp2_nv *nva, nghttp2_mem *mem) nghttp2_nv_array_del() argument 1031 nghttp2_nv_array_sort(nghttp2_nv *nva, size_t nvlen) nghttp2_nv_array_sort() argument 1035 nghttp2_nv_array_copy(nghttp2_nv **nva_ptr, const nghttp2_nv *nva, size_t nvlen, nghttp2_mem *mem) nghttp2_nv_array_copy() argument [all...] |
H A D | nghttp2_submit.c | 145 const nghttp2_nv *nva, size_t nvlen, in submit_headers_shared_nva() 162 rv = nghttp2_nv_array_copy(&nva_copy, nva, nvlen, mem); in submit_headers_shared_nva() 172 const nghttp2_nv *nva, size_t nvlen) { in nghttp2_submit_trailer() 178 stream_id, NULL, nva, nvlen, NULL, in nghttp2_submit_trailer() 185 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_headers() 211 return submit_headers_shared_nva(session, flags, stream_id, pri_spec, nva, in nghttp2_submit_headers() 316 int32_t stream_id, const nghttp2_nv *nva, in nghttp2_submit_push_promise() 354 rv = nghttp2_nv_array_copy(&nva_copy, nva, nvlen, mem); in nghttp2_submit_push_promise() 758 const nghttp2_nv *nva, size_t nvlen, in nghttp2_submit_request() 780 return submit_headers_shared_nva(session, flags, -1, pri_spec, nva, nvle in nghttp2_submit_request() 142 submit_headers_shared_nva(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, void *stream_user_data) submit_headers_shared_nva() argument 171 nghttp2_submit_trailer(nghttp2_session *session, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen) nghttp2_submit_trailer() argument 182 nghttp2_submit_headers(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, void *stream_user_data) nghttp2_submit_headers() argument 315 nghttp2_submit_push_promise(nghttp2_session *session, uint8_t flags, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen, void *promised_stream_user_data) nghttp2_submit_push_promise() argument 756 nghttp2_submit_request(nghttp2_session *session, const nghttp2_priority_spec *pri_spec, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd, void *stream_user_data) nghttp2_submit_request() argument 792 nghttp2_submit_response(nghttp2_session *session, int32_t stream_id, const nghttp2_nv *nva, size_t nvlen, const nghttp2_data_provider *data_prd) nghttp2_submit_response() argument [all...] |
/third_party/node/src/ |
H A D | node_http_common-inl.h | 36 nv_t* const nva = reinterpret_cast<nv_t*>(start); in NgHeaders() local 52 nva[0].name = nva[0].value = &zero; in NgHeaders() 53 nva[0].namelen = nva[0].valuelen = 1; in NgHeaders() 58 nva[n].name = reinterpret_cast<uint8_t*>(p); in NgHeaders() 59 nva[n].namelen = strlen(p); in NgHeaders() 60 p += nva[n].namelen + 1; in NgHeaders() 61 nva[n].value = reinterpret_cast<uint8_t*>(p); in NgHeaders() 62 nva[ in NgHeaders() [all...] |
/third_party/curl/lib/ |
H A D | dynhds.c | 376 nghttp2_nv *nva = calloc(1, sizeof(nghttp2_nv) * dynhds->hds_len); in Curl_dynhds_to_nva() local 380 if(!nva) in Curl_dynhds_to_nva() 386 nva[i].name = (unsigned char *)e->name; in Curl_dynhds_to_nva() 387 nva[i].namelen = e->namelen; in Curl_dynhds_to_nva() 388 nva[i].value = (unsigned char *)e->value; in Curl_dynhds_to_nva() 389 nva[i].valuelen = e->valuelen; in Curl_dynhds_to_nva() 390 nva[i].flags = NGHTTP2_NV_FLAG_NONE; in Curl_dynhds_to_nva() 393 return nva; in Curl_dynhds_to_nva()
|