Home
last modified time | relevance | path

Searched refs:hlen (Results 1 – 6 of 6) sorted by relevance

/lighttpd1.4/src/
H A Dhttp_header.c364 uint32_t hlen = 0; in http_header_parse_hoff() local
365 for (const char *b; (n = memchr((b = n),'\n',clen-hlen)); ++n) { in http_header_parse_hoff()
367 hlen += x; in http_header_parse_hoff()
369 hoff[hoff[0]+1] = hlen; in http_header_parse_hoff()
370 return hlen; in http_header_parse_hoff()
373 hoff[hoff[0]] = hlen; in http_header_parse_hoff()
H A Drequest.c112 uint32_t hlen = colon ? (uint32_t)(colon - h) : len; in request_check_hostname() local
115 if (__builtin_expect( (0 == hlen), 0)) return -1; in request_check_hostname()
116 if (__builtin_expect( (h[hlen-1] == '.'), 0)) { in request_check_hostname()
118 if (--hlen == 0) return -1; in request_check_hostname()
121 memmove(host->ptr+hlen, colon, len - hlen); in request_check_hostname()
129 for (uint32_t i = 0; i < hlen; ++i) { in request_check_hostname()
149 h += hlen; in request_check_hostname()
338 …void http_request_header_set_Host(request_st * const restrict r, const char * const h, size_t hlen) in http_request_header_set_Host() argument
342 buffer_copy_string_len_lc(r->http_host, h, hlen); in http_request_header_set_Host()
646 if ((hpctx->hlen += klen + vlen + 4) > hpctx->max_request_field_size) { in http_request_parse_header()
H A Dhttp_chunk.c313 uint32_t hlen = buffer_clen(h); in http_chunk_decode_append_data() local
320 if ((off_t)(1024 - hlen) < hsz) { in http_chunk_decode_append_data()
H A Dh2.c1388 hpctx.hlen = 0; in h2_parse_headers_frame()
1484 hpctx.hlen += 2; in h2_parse_headers_frame()
1485 r->rqst_header_len += hpctx.hlen; in h2_parse_headers_frame()
1488 rq->bytes_in += (off_t)hpctx.hlen; in h2_parse_headers_frame()
1489 rq->bytes_out += (off_t)hpctx.hlen; in h2_parse_headers_frame()
2343 …st * const r, connection * const con, const char * const hdrs, const uint32_t hlen, uint32_t flags) in h2_send_headers_block() argument
2349 uint32_t rc = http_header_parse_hoff(hdrs, hlen, hoff); in h2_send_headers_block()
2434 …_block (request_st * const r, connection * const con, const char * const hdrs, const uint32_t hlen) in h2_send_1xx_block() argument
2436 h2_send_headers_block(r, con, hdrs, hlen, 0); in h2_send_1xx_block()
H A Drequest.h211 uint32_t hlen; member
H A Dhttp-header-glue.c1074 http_response_check_1xx (request_st * const r, buffer * const restrict b, uint32_t hlen, uint32_t d… in http_response_check_1xx() argument
1083 memmove(b->ptr, b->ptr+hlen, dlen); in http_response_check_1xx()