Lines Matching refs:alen
389 …map_host_match (buffer *b, size_t off, http_header_remap_opts *remap_hdrs, int is_req, size_t alen) in http_header_remap_host_match() argument
411 if (buffer_eq_icase_ss(s, alen, k->ptr, mlen)) { in http_header_remap_host_match()
430 …der_remap_host (buffer *b, size_t off, http_header_remap_opts *remap_hdrs, int is_req, size_t alen) in http_header_remap_host() argument
433 http_header_remap_host_match(b, off, remap_hdrs, is_req, alen); in http_header_remap_host()
434 if (NULL == m) return alen; /*(no match; return original authority length)*/ in http_header_remap_host()
436 buffer_substr_replace(b, off, alen, m); in http_header_remap_host()
490 size_t alen; /*(authority len (host len))*/ in http_header_remap_uri() local
500 alen = (size_t)(s - b->ptr) - off; in http_header_remap_uri()
501 if (0 == alen) return; /*(empty authority, e.g. "http:///")*/ in http_header_remap_uri()
504 alen = buffer_clen(b) - off; in http_header_remap_uri()
505 if (0 == alen) return; /*(empty authority, e.g. "http:///")*/ in http_header_remap_uri()
510 m = http_header_remap_host_match(b, off, remap_hdrs, is_req, alen); in http_header_remap_uri()
518 ++alen; in http_header_remap_uri()
523 --alen; in http_header_remap_uri()
526 buffer_substr_replace(b, off, alen, m); in http_header_remap_uri()
527 alen = buffer_clen(m);/*(length of replacement authority)*/ in http_header_remap_uri()
529 off += alen; in http_header_remap_uri()
575 size_t alen = 0; in http_header_remap_setcookie() local
580 for (char c; (c = e[alen]) != ';' && c != ' ' && c != '\t' in http_header_remap_setcookie()
581 && c != '\r' && c != '\0'; ++alen); in http_header_remap_setcookie()
582 len = http_header_remap_host(b, off, remap_hdrs, 0, alen); in http_header_remap_setcookie()
873 size_t alen = buffer_clen(r->http_host); in proxy_create_env() local
874 http_header_remap_host(b, buffer_clen(b) - alen, &hctx->conf.header, 1, alen); in proxy_create_env()