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

Function ap_request_has_body

server/util.c:2698–2708  ·  view source on GitHub ↗

* Determine if a request has a request body or not. * * @param r the request_rec of the request * @return truth value */

Source from the content-addressed store, hash-verified

2696 * @return truth value
2697 */
2698AP_DECLARE(int) ap_request_has_body(request_rec *r)
2699{
2700 apr_off_t cl;
2701 const char *cls;
2702
2703 return (!r->header_only
2704 && (r->kept_body
2705 || apr_table_get(r->headers_in, "Transfer-Encoding")
2706 || ((cls = apr_table_get(r->headers_in, "Content-Length"))
2707 && ap_parse_strict_length(&cl, cls) && cl > 0)));
2708}
2709
2710AP_DECLARE_NONSTD(apr_status_t) ap_pool_cleanup_set_null(void *data_)
2711{

Callers 2

fill_reneg_bufferFunction · 0.85
httpd.hFile · 0.85

Calls 1

ap_parse_strict_lengthFunction · 0.85

Tested by

no test coverage detected