Home | History | Annotate | Download | only in lib

Lines Matching refs:nva

1003   nghttp2_nv *nva;
1061 nva = malloc(sizeof(nghttp2_nv) * nheader);
1062 if(nva == NULL) {
1068 nva[0].name = (unsigned char *)":method";
1069 nva[0].namelen = (uint16_t)strlen((char *)nva[0].name);
1070 nva[0].value = (unsigned char *)hdbuf;
1071 nva[0].valuelen = (uint16_t)(end - hdbuf);
1072 nva[0].flags = NGHTTP2_NV_FLAG_NONE;
1077 nva[1].name = (unsigned char *)":path";
1078 nva[1].namelen = (uint16_t)strlen((char *)nva[1].name);
1079 nva[1].value = (unsigned char *)hdbuf;
1080 nva[1].valuelen = (uint16_t)(end - hdbuf);
1081 nva[1].flags = NGHTTP2_NV_FLAG_NONE;
1083 nva[2].name = (unsigned char *)":scheme";
1084 nva[2].namelen = (uint16_t)strlen((char *)nva[2].name);
1086 nva[2].value = (unsigned char *)"https";
1088 nva[2].value = (unsigned char *)"http";
1089 nva[2].valuelen = (uint16_t)strlen((char *)nva[2].value);
1090 nva[2].flags = NGHTTP2_NV_FLAG_NONE;
1102 nva[i].name = (unsigned char *)":authority";
1103 nva[i].namelen = (uint16_t)strlen((char *)nva[i].name);
1106 nva[i].name = (unsigned char *)hdbuf;
1107 nva[i].namelen = (uint16_t)(end - hdbuf);
1113 nva[i].value = (unsigned char *)hdbuf;
1114 nva[i].valuelen = (uint16_t)(end - hdbuf);
1115 nva[i].flags = NGHTTP2_NV_FLAG_NONE;
1121 if(nva[i].namelen == 14 &&
1122 Curl_raw_nequal("content-length", (char*)nva[i].name, 14)) {
1125 for(j = 0; j < nva[i].valuelen; ++j) {
1127 stream->upload_left += nva[i].value[j] - '0';
1138 nghttp2_nv authority = nva[authority_idx];
1140 nva[i] = nva[i - 1];
1142 nva[i] = authority;
1151 stream_id = nghttp2_submit_request(h2, NULL, nva, nheader,
1155 stream_id = nghttp2_submit_request(h2, NULL, nva, nheader,
1159 free(nva);