MCPcopy Create free account
hub / github.com/acl-dev/acl / getContentLength

Method getContentLength

lib_acl_cpp/src/http/HttpServletRequest.cpp:300–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298}
299
300acl_int64 HttpServletRequest::getContentLength(void) const
301{
302 if (cgi_mode_) {
303 const char* ptr = acl_getenv("CONTENT_LENGTH");
304 if (ptr == NULL) {
305 return -1;
306 }
307 return acl_atoui64(ptr);
308 }
309 if (client_ == NULL) {
310 return -1;
311 }
312 return client_->body_length();
313}
314
315bool HttpServletRequest::getRange(http_off_t& range_from, http_off_t& range_to)
316{

Callers 9

doUploadMethod · 0.80
http_requestMethod · 0.80
doUploadMethod · 0.80
doJsonMethod · 0.80
doXmlMethod · 0.80
transfer_request_bodyMethod · 0.80
doPutMethod · 0.80
onUploadMethod · 0.80
onUploadMethod · 0.80

Calls 3

acl_getenvFunction · 0.85
acl_atoui64Function · 0.85
body_lengthMethod · 0.45

Tested by

no test coverage detected