MCPcopy Create free account
hub / github.com/apache/httpd / send_continue_body

Function send_continue_body

modules/proxy/mod_proxy_http.c:985–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983}
984
985static int send_continue_body(proxy_http_req_t *req)
986{
987 int status;
988
989 /* Send the request body (fully). */
990 switch(req->rb_method) {
991 case RB_SPOOL_CL:
992 case RB_STREAM_CL:
993 case RB_STREAM_CHUNKED:
994 status = stream_reqbody(req);
995 break;
996 default:
997 /* Shouldn't happen */
998 status = HTTP_INTERNAL_SERVER_ERROR;
999 break;
1000 }
1001 if (status != OK) {
1002 conn_rec *c = req->r->connection;
1003 ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, req->r,
1004 APLOGNO(10154) "pass request body failed "
1005 "to %pI (%s) from %s (%s) with status %i",
1006 req->backend->addr,
1007 req->backend->hostname ? req->backend->hostname : "",
1008 c->client_ip, c->remote_host ? c->remote_host : "",
1009 status);
1010 req->backend->close = 1;
1011 }
1012 return status;
1013}
1014
1015static
1016int ap_proxy_http_process_response(proxy_http_req_t *req)

Callers 1

Calls 1

stream_reqbodyFunction · 0.85

Tested by

no test coverage detected