Lines Matching refs:nv
64 spdy_headers->nv[9] = (char *)value; in http_cb_iterate()
70 spdy_headers->nv[spdy_headers->cnt++] = (char *)name; in http_cb_iterate()
71 spdy_headers->nv[spdy_headers->cnt++] = (char *)value; in http_cb_iterate()
271 if(NULL == (spdy_headers.nv = au_malloc(((spdy_headers.num + 5) * 2 + 1) * sizeof(char *)))) in http_cb_request()
273 spdy_headers.nv[0] = ":method"; spdy_headers.nv[1] = method; in http_cb_request()
274 spdy_headers.nv[2] = ":path"; spdy_headers.nv[3] = proxy->uri->path_and_more; in http_cb_request()
275 spdy_headers.nv[4] = ":version"; spdy_headers.nv[5] = (char *)version; in http_cb_request()
276 spdy_headers.nv[6] = ":scheme"; spdy_headers.nv[7] = proxy->uri->scheme; in http_cb_request()
277 spdy_headers.nv[8] = ":host"; spdy_headers.nv[9] = NULL; in http_cb_request()
285 spdy_headers.nv[spdy_headers.cnt] = NULL; in http_cb_request()
286 if(NULL == spdy_headers.nv[9]) in http_cb_request()
287 spdy_headers.nv[9] = proxy->uri->host_and_port; in http_cb_request()
289 if(0 != spdy_request(spdy_headers.nv, proxy, with_body)) in http_cb_request()
291 free(spdy_headers.nv); in http_cb_request()
296 free(spdy_headers.nv); in http_cb_request()
325 char **nv) in http_create_response() argument
332 for(i = 0; nv[i]; i += 2) { in http_create_response()
333 if(0 == strcmp(":status", nv[i])) in http_create_response()
336 memcpy(&tmp,nv[i+1],3); in http_create_response()
341 else if(0 == strcmp(":version", nv[i])) in http_create_response()
343 proxy->version = nv[i+1]; in http_create_response()
346 else if(0 == strcmp("content-length", nv[i])) in http_create_response()
351 char *header = *(nv+i); in http_create_response()
353 header, nv[i+1])) in http_create_response()
355 PRINT_INFO2("SPDY_name_value_add failed: '%s' '%s'", header, nv[i+1]); in http_create_response()
357 PRINT_INFO2("adding '%s: %s'",header, nv[i+1]); in http_create_response()