Lines Matching refs:hdlen

2803 #define HD_IS(hd, hdlen, n) \  argument
2804 (((hdlen) >= (sizeof(n)-1)) && curl_strnequal((n), (hd), (sizeof(n)-1)))
2806 #define HD_VAL(hd, hdlen, n) \ argument
2807 ((((hdlen) >= (sizeof(n)-1)) && \
2812 #define HD_IS_AND_SAYS(hd, hdlen, n, v) \ argument
2813 (HD_IS(hd, hdlen, n) && \
2814 ((hdlen) > ((sizeof(n)-1) + (sizeof(v)-1))) && \
2821 const char *hd, size_t hdlen) in Curl_http_header() argument
2840 )) ? HD_VAL(hd, hdlen, "Alt-Svc:") : NULL; in Curl_http_header()
2854 HD_VAL(hd, hdlen, "Content-Length:") : NULL; in Curl_http_header()
2880 HD_VAL(hd, hdlen, "Content-Encoding:") : NULL; in Curl_http_header()
2892 v = HD_VAL(hd, hdlen, "Content-Type:"); in Curl_http_header()
2906 if(HD_IS_AND_SAYS(hd, hdlen, "Connection:", "close")) { in Curl_http_header()
2917 HD_IS_AND_SAYS(hd, hdlen, "Connection:", "keep-alive")) { in Curl_http_header()
2928 v = !k->http_bodyless ? HD_VAL(hd, hdlen, "Content-Range:") : NULL; in Curl_http_header()
2963 HD_VAL(hd, hdlen, "Last-Modified:") : NULL; in Curl_http_header()
2971 HD_IS(hd, hdlen, "Location:") && in Curl_http_header()
3004 v = HD_VAL(hd, hdlen, "Proxy-Connection:"); in Curl_http_header()
3007 HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "keep-alive")) { in Curl_http_header()
3018 HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "close")) { in Curl_http_header()
3029 if((407 == k->httpcode) && HD_IS(hd, hdlen, "Proxy-authenticate:")) { in Curl_http_header()
3038 if(HD_IS(hd, hdlen, "Persistent-Auth:")) { in Curl_http_header()
3057 v = HD_VAL(hd, hdlen, "Retry-After:"); in Curl_http_header()
3077 HD_VAL(hd, hdlen, "Set-Cookie:") : NULL; in Curl_http_header()
3108 ) ? HD_VAL(hd, hdlen, "Strict-Transport-Security:") : NULL; in Curl_http_header()
3137 HD_VAL(hd, hdlen, "Transfer-Encoding:") : NULL; in Curl_http_header()
3153 v = HD_VAL(hd, hdlen, "Trailer:"); in Curl_http_header()
3161 if((401 == k->httpcode) && HD_IS(hd, hdlen, "WWW-Authenticate:")) { in Curl_http_header()
3300 const char *hd, size_t hdlen) in verify_header() argument
3303 char *ptr = memchr(hd, 0x00, hdlen); in verify_header()
3316 ptr = memchr(hd, ':', hdlen); in verify_header()
3354 const char *hd, size_t hdlen) in http_write_header() argument
3361 Curl_debug(data, CURLINFO_HEADER_IN, (char *)hd, hdlen); in http_write_header()
3366 result = Curl_client_write(data, writetype, hd, hdlen); in http_write_header()
3370 result = Curl_bump_headersize(data, hdlen, FALSE); in http_write_header()
3667 const char *hd, size_t hdlen, in http_rw_hd() argument
3681 Curl_dyn_init(&last_header, hdlen + 1); in http_rw_hd()
3682 result = Curl_dyn_addn(&last_header, hd, hdlen); in http_rw_hd()
3770 statusline check = checkhttpprefix(data, hd, hdlen); in http_rw_hd()
3818 result = verify_header(data, hd, hdlen); in http_rw_hd()
3822 result = Curl_http_header(data, hd, hdlen); in http_rw_hd()
3829 Curl_debug(data, CURLINFO_HEADER_IN, (char *)hd, hdlen); in http_rw_hd()
3833 result = Curl_client_write(data, writetype, hd, hdlen); in http_rw_hd()
3837 result = Curl_bump_headersize(data, hdlen, FALSE); in http_rw_hd()
3959 const char *hd, size_t hdlen, in Curl_http_write_resp_hd() argument
3966 result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed); in Curl_http_write_resp_hd()