Lines Matching refs:result

84   CURLcode result;  in Curl_hyper_recv()  local
90 result = Curl_conn_recv(data, io_ctx->sockindex, in Curl_hyper_recv()
92 if(result == CURLE_AGAIN) { in Curl_hyper_recv()
104 else if(result) { in Curl_hyper_recv()
117 CURLcode result; in Curl_hyper_send() local
121 result = Curl_conn_send(data, io_ctx->sockindex, in Curl_hyper_send()
123 if(result == CURLE_AGAIN) { in Curl_hyper_send()
135 else if(result) { in Curl_hyper_send()
152 CURLcode result; in hyper_each_header() local
174 result = Curl_http_header(data, headp, len); in hyper_each_header()
175 if(result) { in hyper_each_header()
176 data->state.hresult = result; in hyper_each_header()
187 result = Curl_client_write(data, writetype, headp, len); in hyper_each_header()
188 if(result) { in hyper_each_header()
193 result = Curl_bump_headersize(data, len, FALSE); in hyper_each_header()
194 if(result) { in hyper_each_header()
195 data->state.hresult = result; in hyper_each_header()
207 CURLcode result = CURLE_OK; in hyper_body_chunk() local
237 result = CURLE_OK; in hyper_body_chunk()
240 result = Curl_http_firstwrite(data); in hyper_body_chunk()
241 if(result || data->req.done) { in hyper_body_chunk()
243 data->state.hresult = result; in hyper_body_chunk()
247 result = Curl_client_write(data, CLIENTWRITE_BODY, buf, len); in hyper_body_chunk()
249 if(result) { in hyper_body_chunk()
250 data->state.hresult = result; in hyper_body_chunk()
267 CURLcode result; in status_line() local
287 result = Curl_http_statusline(data, conn); in status_line()
288 if(result) in status_line()
289 return result; in status_line()
294 result = Curl_dyn_addf(&data->state.headerb, "HTTP/%s %03d %.*s\r\n", in status_line()
298 if(result) in status_line()
299 return result; in status_line()
307 result = Curl_client_write(data, writetype, in status_line()
309 if(result) in status_line()
310 return result; in status_line()
312 result = Curl_bump_headersize(data, len, FALSE); in status_line()
313 return result; in status_line()
322 CURLcode result = Curl_http_size(data); in empty_header() local
323 if(!result) { in empty_header()
324 result = hyper_each_header(data, NULL, 0, NULL, 0) ? in empty_header()
326 if(result) in empty_header()
332 return result; in empty_header()
350 CURLcode result = CURLE_OK; in Curl_hyper_stream() local
385 result = data->state.hresult; in Curl_hyper_stream()
395 result = CURLE_OK; in Curl_hyper_stream()
399 result = CURLE_GOT_NOTHING; in Curl_hyper_stream()
401 result = CURLE_RECV_ERROR; in Curl_hyper_stream()
407 result = CURLE_UNSUPPORTED_PROTOCOL; /* maybe */ in Curl_hyper_stream()
410 result = CURLE_RECV_ERROR; in Curl_hyper_stream()
427 result = Curl_http_firstwrite(data); in Curl_hyper_stream()
444 result = CURLE_RECV_ERROR; in Curl_hyper_stream()
460 result = status_line(data, conn, in Curl_hyper_stream()
462 if(result) in Curl_hyper_stream()
468 result = CURLE_RECV_ERROR; in Curl_hyper_stream()
475 result = data->state.hresult; in Curl_hyper_stream()
479 result = empty_header(data); in Curl_hyper_stream()
480 if(result) in Curl_hyper_stream()
489 result = Curl_ws_accept(data, NULL, 0); in Curl_hyper_stream()
490 if(result) in Curl_hyper_stream()
495 result = CURLE_HTTP_RETURNED_ERROR; in Curl_hyper_stream()
504 result = Curl_http_auth_act(data); in Curl_hyper_stream()
505 if(result) in Curl_hyper_stream()
511 result = CURLE_RECV_ERROR; in Curl_hyper_stream()
517 result = CURLE_OUT_OF_MEMORY; in Curl_hyper_stream()
523 result = CURLE_OUT_OF_MEMORY; in Curl_hyper_stream()
535 if(!result && Curl_xfer_needs_flush(data)) { in Curl_hyper_stream()
537 result = Curl_xfer_flush(data); in Curl_hyper_stream()
541 DEBUGF(infof(data, "Curl_hyper_stream() -> %d", result)); in Curl_hyper_stream()
544 return result; in Curl_hyper_stream()
635 CURLcode result; in request_target() local
640 result = Curl_http_target(data, conn, &r); in request_target()
641 if(result) in request_target()
642 return result; in request_target()
647 result = CURLE_OUT_OF_MEMORY; in request_target()
650 result = debug_request(data, method, Curl_dyn_ptr(&r)); in request_target()
654 return result; in request_target()
662 CURLcode result; in uploadstreamed() local
669 result = Curl_multi_xfer_ulbuf_borrow(data, &xfer_ulbuf, &xfer_ulblen); in uploadstreamed()
670 if(result) in uploadstreamed()
673 result = Curl_client_read(data, xfer_ulbuf, xfer_ulblen, &fillcount, &eos); in uploadstreamed()
674 if(result) in uploadstreamed()
682 result = CURLE_OUT_OF_MEMORY; in uploadstreamed()
708 result = Curl_req_set_upload_done(data); in uploadstreamed()
713 data->state.hresult = result; in uploadstreamed()
714 DEBUGF(infof(data, "hyper: uploadstreamed() -> %d", result)); in uploadstreamed()
726 CURLcode result = CURLE_OK; in finalize_request() local
734 result = Curl_http_req_complete(data, &req, httpreq); in finalize_request()
735 if(result) in finalize_request()
736 return result; in finalize_request()
741 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req)); in finalize_request()
742 if(result) in finalize_request()
743 return result; in finalize_request()
754 result = CURLE_OUT_OF_MEMORY; in finalize_request()
766 CURLcode result; in cookies() local
769 result = Curl_http_cookies(data, conn, &req); in cookies()
770 if(!result) in cookies()
771 result = Curl_hyper_header(data, headers, Curl_dyn_ptr(&req)); in cookies()
773 return result; in cookies()
781 CURLcode result = CURLE_OK; in http1xx_cb() local
794 result = status_line(data, data->conn, in http1xx_cb()
796 if(!result) { in http1xx_cb()
800 result = CURLE_RECV_ERROR; in http1xx_cb()
803 data->state.hresult = result; in http1xx_cb()
805 if(!result) { in http1xx_cb()
811 result = CURLE_OUT_OF_MEMORY; in http1xx_cb()
835 CURLcode result; in Curl_http() local
846 result = Curl_client_start(data); in Curl_http()
847 if(result) in Curl_http()
853 result = Curl_headers_init(data); in Curl_http()
854 if(result) in Curl_http()
860 result = Curl_http_host(data, conn); in Curl_http()
861 if(result) in Curl_http()
874 result = CURLE_OUT_OF_MEMORY; in Curl_http()
878 result = Curl_http_output_auth(data, conn, method, httpreq, in Curl_http()
881 if(result) in Curl_http()
885 result = Curl_http_req_set_reader(data, httpreq, &te); in Curl_http()
886 if(result) in Curl_http()
889 result = Curl_http_range(data, httpreq); in Curl_http()
890 if(result) in Curl_http()
893 result = Curl_http_useragent(data); in Curl_http()
894 if(result) in Curl_http()
900 result = CURLE_OUT_OF_MEMORY; in Curl_http()
915 result = CURLE_OUT_OF_MEMORY; in Curl_http()
923 result = CURLE_OUT_OF_MEMORY; in Curl_http()
928 result = CURLE_UNSUPPORTED_PROTOCOL; in Curl_http()
941 result = CURLE_OUT_OF_MEMORY; in Curl_http()
949 result = CURLE_OUT_OF_MEMORY; in Curl_http()
957 result = CURLE_OUT_OF_MEMORY; in Curl_http()
967 result = CURLE_OUT_OF_MEMORY; in Curl_http()
975 result = CURLE_OUT_OF_MEMORY; in Curl_http()
982 result = CURLE_OUT_OF_MEMORY; in Curl_http()
986 result = request_target(data, conn, method, req); in Curl_http()
987 if(result) in Curl_http()
993 result = CURLE_OUT_OF_MEMORY; in Curl_http()
999 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1004 result = Curl_hyper_header(data, headers, data->state.aptr.host); in Curl_http()
1005 if(result) in Curl_http()
1011 result = Curl_hyper_header(data, headers, data->state.aptr.proxyuserpwd); in Curl_http()
1012 if(result) in Curl_http()
1018 result = Curl_hyper_header(data, headers, data->state.aptr.userpwd); in Curl_http()
1019 if(result) in Curl_http()
1024 result = Curl_hyper_header(data, headers, data->state.aptr.rangeline); in Curl_http()
1025 if(result) in Curl_http()
1032 result = Curl_hyper_header(data, headers, data->state.aptr.uagent); in Curl_http()
1033 if(result) in Curl_http()
1040 result = Curl_hyper_header(data, headers, p_accept); in Curl_http()
1041 if(result) in Curl_http()
1045 result = Curl_hyper_header(data, headers, te); in Curl_http()
1046 if(result) in Curl_http()
1055 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1058 result = Curl_hyper_header(data, headers, altused); in Curl_http()
1059 if(result) in Curl_http()
1069 result = Curl_hyper_header(data, headers, "Proxy-Connection: Keep-Alive"); in Curl_http()
1070 if(result) in Curl_http()
1079 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1081 result = Curl_hyper_header(data, headers, data->state.aptr.ref); in Curl_http()
1082 if(result) in Curl_http()
1088 result = Curl_transferencode(data); in Curl_http()
1089 if(result) in Curl_http()
1091 result = Curl_hyper_header(data, headers, data->state.aptr.te); in Curl_http()
1092 if(result) in Curl_http()
1102 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1104 result = Curl_hyper_header(data, headers, in Curl_http()
1106 if(result) in Curl_http()
1112 result = cookies(data, conn, headers); in Curl_http()
1113 if(result) in Curl_http()
1116 if(!result && conn->handler->protocol&(CURLPROTO_WS|CURLPROTO_WSS)) in Curl_http()
1117 result = Curl_ws_request(data, headers); in Curl_http()
1119 result = Curl_add_timecondition(data, headers); in Curl_http()
1120 if(result) in Curl_http()
1123 result = Curl_add_custom_headers(data, FALSE, headers); in Curl_http()
1124 if(result) in Curl_http()
1127 result = finalize_request(data, headers, req, httpreq); in Curl_http()
1128 if(result) in Curl_http()
1142 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1149 result = CURLE_OUT_OF_MEMORY; in Curl_http()
1160 result = Curl_req_set_upload_done(data); in Curl_http()
1161 if(result) in Curl_http()
1176 if(result) { in Curl_http()
1188 return result; in Curl_http()
1242 CURLcode result; in cr_hyper_add() local
1244 result = Curl_creader_create(&reader, data, &cr_hyper_protocol, in cr_hyper_add()
1246 if(!result) in cr_hyper_add()
1247 result = Curl_creader_add(data, reader); in cr_hyper_add()
1249 if(result && reader) in cr_hyper_add()
1251 return result; in cr_hyper_add()