Home
last modified time | relevance | path

Searched refs:hdidx (Results 1 – 3 of 3) sorted by relevance

/third_party/nghttp2/src/
Dhttp2.h356 void init_hdidx(HeaderIndex &hdidx);
358 void index_header(HeaderIndex &hdidx, int32_t token, size_t idx);
361 const Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token,
364 Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token,
Dhttp2_test.cc125 http2::HeaderIndex hdidx; in test_http2_get_header() local
126 http2::init_hdidx(hdidx); in test_http2_get_header()
127 hdidx[http2::HD_CONTENT_LENGTH] = 6; in test_http2_get_header()
128 rv = http2::get_header(hdidx, http2::HD_CONTENT_LENGTH, nva); in test_http2_get_header()
312 http2::HeaderIndex hdidx; in test_http2_index_header() local
313 http2::init_hdidx(hdidx); in test_http2_index_header()
315 http2::index_header(hdidx, http2::HD__AUTHORITY, 0); in test_http2_index_header()
316 http2::index_header(hdidx, -1, 1); in test_http2_index_header()
318 CU_ASSERT(0 == hdidx[http2::HD__AUTHORITY]); in test_http2_index_header()
Dhttp2.cc987 void init_hdidx(HeaderIndex &hdidx) { in init_hdidx() argument
988 std::fill(std::begin(hdidx), std::end(hdidx), -1); in init_hdidx()
991 void index_header(HeaderIndex &hdidx, int32_t token, size_t idx) { in index_header() argument
996 hdidx[token] = idx; in index_header()
999 const Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token, in get_header() argument
1001 auto i = hdidx[token]; in get_header()
1008 Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token, in get_header() argument
1010 auto i = hdidx[token]; in get_header()