Lines Matching refs:nv
172 static void check_gzip(struct Request *req, char **nv) in check_gzip() argument
176 for(i = 0; nv[i]; i += 2) { in check_gzip()
177 if(strcmp("content-encoding", nv[i]) == 0) { in check_gzip()
178 gzip = strcmp("gzip", nv[i+1]) == 0; in check_gzip()
308 char **nv; in on_ctrl_send_callback() local
314 nv = frame->syn_stream.nv; in on_ctrl_send_callback()
323 for(i = 0; nv[i]; i += 2) { in on_ctrl_send_callback()
324 printf(" %s: %s\n", nv[i], nv[i+1]); in on_ctrl_send_callback()
336 char **nv; in on_ctrl_recv_callback() local
342 nv = frame->syn_reply.nv; in on_ctrl_recv_callback()
347 nv = frame->headers.nv; in on_ctrl_recv_callback()
359 check_gzip(req, nv); in on_ctrl_recv_callback()
361 for(i = 0; nv[i]; i += 2) { in on_ctrl_recv_callback()
362 printf(" %s: %s\n", nv[i], nv[i+1]); in on_ctrl_recv_callback()
550 const char *nv[15]; in submit_request() local
554 nv[0] = ":method"; nv[1] = "GET"; in submit_request()
555 nv[2] = ":path"; nv[3] = req->path; in submit_request()
556 nv[4] = ":version"; nv[5] = "HTTP/1.1"; in submit_request()
557 nv[6] = ":scheme"; nv[7] = "https"; in submit_request()
558 nv[8] = ":host"; nv[9] = req->hostport; in submit_request()
559 nv[10] = "accept"; nv[11] = "*/*"; in submit_request()
560 nv[12] = "user-agent"; nv[13] = "spdylay/"SPDYLAY_VERSION; in submit_request()
561 nv[14] = NULL; in submit_request()
562 rv = spdylay_submit_request(connection->session, pri, nv, NULL, req); in submit_request()