Lines Matching defs:length
295 req->length = strlen(req->data);
298 if (secreq->body.length > 0) {
300 req->length + secreq->body.length);
306 memcpy(&req->data[req->length],
307 secreq->body.data, secreq->body.length);
308 req->length += secreq->body.length;
619 data.length = req->data->length - req->written;
628 req->written = req->data->length - data.length;
658 static bool ph_received_data(struct proxy_http_reply *reply, size_t length)
660 reply->received += length;
685 static int ph_on_status(http_parser *parser, const char *at, size_t length)
690 if (ph_received_data(reply, length)) return -1;
692 ph_append_string(reply, &reply->reason_phrase, at, length);
704 const char *at, size_t length)
710 if (ph_received_data(reply, length)) return -1;
732 ph_append_string(reply->headers, &reply->headers[n - 1].name, at, length);
743 const char *at, size_t length)
749 if (ph_received_data(reply, length)) return -1;
762 ph_append_string(reply->headers, &reply->headers[n - 1].value, at, length);
778 static int ph_on_body(http_parser *parser, const char *at, size_t length)
783 if (ph_received_data(reply, length)) return -1;
786 ph_append_string(reply, &reply->body.data, at, length);
792 reply->body.length += length;
849 /* if we got no content length and the request is not complete,
850 * then 0 length will indicate EOF to the parser, otherwise we
870 packet.data, packet.length);
871 if (ret != packet.length) {