Searched refs:hdidx (Results 1 - 3 of 3) sorted by relevance
/third_party/nghttp2/src/ |
H A D | http2.h | 348 // Initializes |hdidx|, header index. The |hdidx| must point to the 350 void init_hdidx(HeaderIndex &hdidx); 352 void index_header(HeaderIndex &hdidx, int32_t token, size_t idx); 354 // Returns header denoted by |token| using index |hdidx|. 355 const Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token, 358 Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token,
|
H A D | http2_test.cc | 125 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()
|
H A D | http2.cc | 976 void init_hdidx(HeaderIndex &hdidx) { in init_hdidx() argument 977 std::fill(std::begin(hdidx), std::end(hdidx), -1); in init_hdidx() 980 void index_header(HeaderIndex &hdidx, int32_t token, size_t idx) { in index_header() argument 985 hdidx[token] = idx; in index_header() 988 const Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token, 990 auto i = hdidx[token]; 997 Headers::value_type *get_header(const HeaderIndex &hdidx, int32_t token, 999 auto i = hdidx[token];
|
Completed in 5 milliseconds