Lines Matching refs:hd
2802 #define HD_IS(hd, hdlen, n) \ argument
2803 (((hdlen) >= (sizeof(n)-1)) && curl_strnequal((n), (hd), (sizeof(n)-1)))
2805 #define HD_VAL(hd, hdlen, n) \ argument
2807 curl_strnequal((n), (hd), (sizeof(n)-1)))? (hd + (sizeof(n)-1)) : NULL)
2811 #define HD_IS_AND_SAYS(hd, hdlen, n, v) \ argument
2812 (HD_IS(hd, hdlen, n) && \
2814 Curl_compareheader(hd, STRCONST(n), STRCONST(v)))
2820 const char *hd, size_t hdlen) in Curl_http_header() argument
2827 switch(hd[0]) { in Curl_http_header()
2839 )) ? HD_VAL(hd, hdlen, "Alt-Svc:") : NULL; in Curl_http_header()
2853 HD_VAL(hd, hdlen, "Content-Length:") : NULL; in Curl_http_header()
2879 HD_VAL(hd, hdlen, "Content-Encoding:") : NULL; in Curl_http_header()
2891 v = HD_VAL(hd, hdlen, "Content-Type:"); in Curl_http_header()
2893 char *contenttype = Curl_copy_header_value(hd); in Curl_http_header()
2905 if(HD_IS_AND_SAYS(hd, hdlen, "Connection:", "close")) { in Curl_http_header()
2916 HD_IS_AND_SAYS(hd, hdlen, "Connection:", "keep-alive")) { in Curl_http_header()
2927 v = !k->http_bodyless ? HD_VAL(hd, hdlen, "Content-Range:") : NULL; in Curl_http_header()
2962 HD_VAL(hd, hdlen, "Last-Modified:") : NULL; in Curl_http_header()
2970 HD_IS(hd, hdlen, "Location:") && in Curl_http_header()
2973 char *location = Curl_copy_header_value(hd); in Curl_http_header()
3003 v = HD_VAL(hd, hdlen, "Proxy-Connection:"); in Curl_http_header()
3006 HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "keep-alive")) { in Curl_http_header()
3017 HD_IS_AND_SAYS(hd, hdlen, "Proxy-Connection:", "close")) { in Curl_http_header()
3028 if((407 == k->httpcode) && HD_IS(hd, hdlen, "Proxy-authenticate:")) { in Curl_http_header()
3029 char *auth = Curl_copy_header_value(hd); in Curl_http_header()
3037 if(HD_IS(hd, hdlen, "Persistent-Auth:")) { in Curl_http_header()
3041 char *persistentauth = Curl_copy_header_value(hd); in Curl_http_header()
3055 v = HD_VAL(hd, hdlen, "Retry-After:"); in Curl_http_header()
3075 HD_VAL(hd, hdlen, "Set-Cookie:") : NULL; in Curl_http_header()
3106 ) ? HD_VAL(hd, hdlen, "Strict-Transport-Security:") : NULL; in Curl_http_header()
3135 HD_VAL(hd, hdlen, "Transfer-Encoding:") : NULL; in Curl_http_header()
3151 v = HD_VAL(hd, hdlen, "Trailer:"); in Curl_http_header()
3159 if((401 == k->httpcode) && HD_IS(hd, hdlen, "WWW-Authenticate:")) { in Curl_http_header()
3160 char *auth = Curl_copy_header_value(hd); in Curl_http_header()
3171 result = Curl_rtsp_parseheader(data, hd); in Curl_http_header()
3298 const char *hd, size_t hdlen) in verify_header() argument
3301 char *ptr = memchr(hd, 0x00, hdlen); in verify_header()
3310 if(((hd[0] == ' ') || (hd[0] == '\t')) && k->headerline > 2) in verify_header()
3314 ptr = memchr(hd, ':', hdlen); in verify_header()
3352 const char *hd, size_t hdlen) in http_write_header() argument
3359 Curl_debug(data, CURLINFO_HEADER_IN, (char *)hd, hdlen); in http_write_header()
3364 result = Curl_client_write(data, writetype, hd, hdlen); in http_write_header()
3665 const char *hd, size_t hdlen, in http_rw_hd() argument
3674 if((0x0a == *hd) || (0x0d == *hd)) { in http_rw_hd()
3680 result = Curl_dyn_addn(&last_header, hd, hdlen); in http_rw_hd()
3716 const char *p = hd; in http_rw_hd()
3768 statusline check = checkhttpprefix(data, hd, hdlen); in http_rw_hd()
3777 const char *p = hd; in http_rw_hd()
3816 result = verify_header(data, hd, hdlen); in http_rw_hd()
3820 result = Curl_http_header(data, hd, hdlen); in http_rw_hd()
3827 Curl_debug(data, CURLINFO_HEADER_IN, (char *)hd, hdlen); in http_rw_hd()
3831 result = Curl_client_write(data, writetype, hd, hdlen); in http_rw_hd()
3957 const char *hd, size_t hdlen, in Curl_http_write_resp_hd() argument
3964 result = http_rw_hd(data, hd, hdlen, &tmp, 0, &consumed); in Curl_http_write_resp_hd()