Lines Matching refs:req
185 if(data->req.httpcode/100 == 1) in hyper_each_header()
206 struct SingleRequest *k = &data->req; in hyper_body_chunk()
213 (((data->req.httpcode == 401) && in hyper_body_chunk()
215 ((data->req.httpcode == 407) && in hyper_body_chunk()
219 Curl_safefree(data->req.newurl); in hyper_body_chunk()
223 if(data->req.httpcode < 400) { in hyper_body_chunk()
234 if(data->state.hconnect && (data->req.httpcode/100 != 2) && in hyper_body_chunk()
236 data->req.done = TRUE; in hyper_body_chunk()
241 if(result || data->req.done) { in hyper_body_chunk()
276 data->req.httpcode = http_status; in status_line()
277 data->req.httpversion = http_version == HYPER_HTTP_VERSION_1_1 ? 11 : in status_line()
283 conn->httpversion = (unsigned char)data->req.httpversion; in status_line()
351 struct SingleRequest *k = &data->req; in Curl_hyper_stream()
398 if(!data->req.bytecount) in Curl_hyper_stream()
406 data->req.headerbytecount++; in Curl_hyper_stream()
414 data->req.done = TRUE; in Curl_hyper_stream()
423 data->req.done = TRUE; in Curl_hyper_stream()
456 data->req.newurl = strdup(data->state.url); in Curl_hyper_stream()
551 char *req = aprintf("%s %s HTTP/1.1\r\n", method, path); in debug_request() local
552 if(!req) in debug_request()
554 Curl_debug(data, CURLINFO_HEADER_OUT, req, strlen(req)); in debug_request()
555 free(req); in debug_request()
633 hyper_request *req) in request_target() argument
644 if(hyper_request_set_uri(req, (uint8_t *)Curl_dyn_uptr(&r), in request_target()
687 data->req.writebytecount += fillcount; in uploadstreamed()
689 data->req.eos_read = TRUE; in uploadstreamed()
690 Curl_pgrsSetUploadCounter(data, data->req.writebytecount); in uploadstreamed()
694 data->req.eos_read = TRUE; in uploadstreamed()
706 if(!data->req.upload_done && data->req.eos_read) { in uploadstreamed()
727 struct dynbuf req; in finalize_request() local
733 Curl_dyn_init(&req, DYN_HTTP_REQUEST); in finalize_request()
734 result = Curl_http_req_complete(data, &req, httpreq); in finalize_request()
740 if(Curl_dyn_len(&req) != 2 || strcmp(Curl_dyn_ptr(&req), "\r\n")) { in finalize_request()
741 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req)); in finalize_request()
746 Curl_dyn_free(&req); in finalize_request()
765 struct dynbuf req; in cookies() local
767 Curl_dyn_init(&req, DYN_HTTP_REQUEST); in cookies()
769 result = Curl_http_cookies(data, conn, &req); in cookies()
771 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req)); in cookies()
772 Curl_dyn_free(&req); in cookies()
832 hyper_request *req = NULL; in Curl_http() local
866 DEBUGASSERT(data->req.bytecount == 0); in Curl_http()
964 req = hyper_request_new(); in Curl_http()
965 if(!req) { in Curl_http()
972 if(HYPERE_OK != hyper_request_set_version(req, in Curl_http()
980 if(hyper_request_set_method(req, (uint8_t *)method, strlen(method))) { in Curl_http()
986 result = request_target(data, conn, method, req); in Curl_http()
990 headers = hyper_request_headers(req); in Curl_http()
997 rc = hyper_request_on_informational(req, http1xx_cb, data); in Curl_http()
1127 result = finalize_request(data, headers, req, httpreq); in Curl_http()
1133 if(data->req.upload_chunky && data->req.authneg) { in Curl_http()
1134 data->req.upload_chunky = TRUE; in Curl_http()
1137 data->req.upload_chunky = FALSE; in Curl_http()
1139 sendtask = hyper_clientconn_send(client, req); in Curl_http()
1145 req = NULL; in Curl_http()
1185 if(req) in Curl_http()
1186 hyper_request_free(req); in Curl_http()