Lines Matching refs:htp
55 int htp_msg_begin(llhttp_t *htp);
56 int htp_uricb(llhttp_t *htp, const char *data, size_t len);
57 int htp_hdr_keycb(llhttp_t *htp, const char *data, size_t len);
58 int htp_hdr_valcb(llhttp_t *htp, const char *data, size_t len);
59 int htp_hdrs_completecb(llhttp_t *htp);
60 int htp_bodycb(llhttp_t *htp, const char *data, size_t len);
61 int htp_msg_completecb(llhttp_t *htp);
129 int htp_msg_begin(llhttp_t *htp) {
130 auto upstream = static_cast<HttpsUpstream *>(htp->data);
137 int htp_uricb(llhttp_t *htp, const char *data, size_t len) {
138 auto upstream = static_cast<HttpsUpstream *>(htp->data);
145 req.method = htp->method;
156 llhttp_set_error_reason(htp, "too long request URI");
174 int htp_hdr_keycb(llhttp_t *htp, const char *data, size_t len) {
175 auto upstream = static_cast<HttpsUpstream *>(htp->data);
189 llhttp_set_error_reason(htp, "too large header");
203 llhttp_set_error_reason(htp, "too many headers");
218 llhttp_set_error_reason(htp, "too many headers");
229 int htp_hdr_valcb(llhttp_t *htp, const char *data, size_t len) {
230 auto upstream = static_cast<HttpsUpstream *>(htp->data);
244 llhttp_set_error_reason(htp, "too large header");
333 int htp_hdrs_completecb(llhttp_t *htp) {
335 auto upstream = static_cast<HttpsUpstream *>(htp->data);
359 req.http_major = htp->http_major;
360 req.http_minor = htp->http_minor;
362 req.connection_close = !llhttp_should_keep_alive(htp);
389 // llhttp sets 0 to htp->content_length if there is no
393 req.fs.content_length = htp->content_length;
422 if (htp->flags & F_CHUNKED) {
561 int htp_bodycb(llhttp_t *htp, const char *data, size_t len) {
563 auto upstream = static_cast<HttpsUpstream *>(htp->data);
574 llhttp_set_error_reason(htp, "could not process request body");
582 int htp_msg_completecb(llhttp_t *htp) {
584 auto upstream = static_cast<HttpsUpstream *>(htp->data);