Lines Matching refs:nva
1654 nghttp2_nv *nva = NULL; in http2_send() local
1731 nva = malloc(sizeof(nghttp2_nv) * nheader); in http2_send()
1732 if(nva == NULL) { in http2_send()
1744 nva[0].name = (unsigned char *)":method"; in http2_send()
1745 nva[0].namelen = strlen((char *)nva[0].name); in http2_send()
1746 nva[0].value = (unsigned char *)hdbuf; in http2_send()
1747 nva[0].valuelen = (size_t)(end - hdbuf); in http2_send()
1748 nva[0].flags = NGHTTP2_NV_FLAG_NONE; in http2_send()
1749 if(HEADER_OVERFLOW(nva[0])) { in http2_send()
1766 nva[1].name = (unsigned char *)":path"; in http2_send()
1767 nva[1].namelen = strlen((char *)nva[1].name); in http2_send()
1768 nva[1].value = (unsigned char *)hdbuf; in http2_send()
1769 nva[1].valuelen = (size_t)(end - hdbuf); in http2_send()
1770 nva[1].flags = NGHTTP2_NV_FLAG_NONE; in http2_send()
1771 if(HEADER_OVERFLOW(nva[1])) { in http2_send()
1779 nva[2].name = (unsigned char *)":scheme"; in http2_send()
1780 nva[2].namelen = strlen((char *)nva[2].name); in http2_send()
1782 nva[2].value = (unsigned char *)"https"; in http2_send()
1784 nva[2].value = (unsigned char *)"http"; in http2_send()
1785 nva[2].valuelen = strlen((char *)nva[2].value); in http2_send()
1786 nva[2].flags = NGHTTP2_NV_FLAG_NONE; in http2_send()
1787 if(HEADER_OVERFLOW(nva[2])) { in http2_send()
1815 nva[i].name = (unsigned char *)":authority"; in http2_send()
1816 nva[i].namelen = strlen((char *)nva[i].name); in http2_send()
1819 nva[i].name = (unsigned char *)hdbuf; in http2_send()
1820 nva[i].namelen = (size_t)(end - hdbuf); in http2_send()
1827 switch(inspect_header((const char *)nva[i].name, nva[i].namelen, hdbuf, in http2_send()
1834 nva[i].value = (uint8_t*)"trailers"; in http2_send()
1835 nva[i].valuelen = sizeof("trailers") - 1; in http2_send()
1838 nva[i].value = (unsigned char *)hdbuf; in http2_send()
1839 nva[i].valuelen = (size_t)(end - hdbuf); in http2_send()
1842 nva[i].flags = NGHTTP2_NV_FLAG_NONE; in http2_send()
1843 if(HEADER_OVERFLOW(nva[i])) { in http2_send()
1852 nghttp2_nv authority = nva[authority_idx]; in http2_send()
1854 nva[i] = nva[i - 1]; in http2_send()
1856 nva[i] = authority; in http2_send()
1866 if(nva[i].namelen > max_acc - acc) in http2_send()
1868 acc += nva[i].namelen; in http2_send()
1870 if(nva[i].valuelen > max_acc - acc) in http2_send()
1872 acc += nva[i].valuelen; in http2_send()
1875 nva[i].namelen, nva[i].name, in http2_send()
1876 nva[i].valuelen, nva[i].value)); in http2_send()
1900 stream_id = nghttp2_submit_request(h2, &pri_spec, nva, nheader, in http2_send()
1904 stream_id = nghttp2_submit_request(h2, &pri_spec, nva, nheader, in http2_send()
1908 Curl_safefree(nva); in http2_send()
1950 free(nva); in http2_send()