Lines Matching refs:nv
175 static void check_gzip(struct Request *req, char **nv) in check_gzip() argument
179 for(i = 0; nv[i]; i += 2) { in check_gzip()
180 if(strcmp("content-encoding", nv[i]) == 0) { in check_gzip()
181 gzip = strcmp("gzip", nv[i+1]) == 0; in check_gzip()
293 char **nv; in on_ctrl_send_callback() local
299 nv = frame->syn_stream.nv; in on_ctrl_send_callback()
308 for(i = 0; nv[i]; i += 2) { in on_ctrl_send_callback()
309 printf(" %s: %s\n", nv[i], nv[i+1]); in on_ctrl_send_callback()
321 char **nv; in on_ctrl_recv_callback() local
327 nv = frame->syn_reply.nv; in on_ctrl_recv_callback()
332 nv = frame->headers.nv; in on_ctrl_recv_callback()
344 check_gzip(req, nv); in on_ctrl_recv_callback()
346 for(i = 0; nv[i]; i += 2) { in on_ctrl_recv_callback()
347 printf(" %s: %s\n", nv[i], nv[i+1]); in on_ctrl_recv_callback()
586 const char *nv[15]; in submit_request() local
590 nv[0] = ":method"; nv[1] = "GET"; in submit_request()
591 nv[2] = ":path"; nv[3] = req->path; in submit_request()
592 nv[4] = ":version"; nv[5] = "HTTP/1.1"; in submit_request()
593 nv[6] = ":scheme"; nv[7] = "https"; in submit_request()
594 nv[8] = ":host"; nv[9] = req->hostport; in submit_request()
595 nv[10] = "accept"; nv[11] = "*/*"; in submit_request()
596 nv[12] = "user-agent"; nv[13] = "spdylay/"SPDYLAY_VERSION; in submit_request()
597 nv[14] = NULL; in submit_request()
598 rv = spdylay_submit_request(connection->session, pri, nv, NULL, req); in submit_request()