Lines Matching refs:header
188 static CURLcode namevalue(char *header, size_t hlen, unsigned int type, in namevalue() argument
191 char *end = header + hlen - 1; /* point to the last byte */ in namevalue()
193 *name = header; in namevalue()
196 if(*header != ':') in namevalue()
198 header++; in namevalue()
202 while(*header && (*header != ':')) in namevalue()
203 ++header; in namevalue()
205 if(*header) in namevalue()
207 *header++ = 0; in namevalue()
212 while(*header && ISBLANK(*header)) in namevalue()
213 header++; in namevalue()
215 *value = header; in namevalue()
218 while((end > header) && ISSPACE(*end)) in namevalue()
277 CURLcode Curl_headers_push(struct Curl_easy *data, const char *header, in Curl_headers_push() argument
287 if((header[0] == '\r') || (header[0] == '\n')) in Curl_headers_push()
291 end = strchr(header, '\r'); in Curl_headers_push()
293 end = strchr(header, '\n'); in Curl_headers_push()
298 hlen = end - header; in Curl_headers_push()
300 if((header[0] == ' ') || (header[0] == '\t')) { in Curl_headers_push()
303 return unfold_value(data, header, hlen); in Curl_headers_push()
307 while(hlen && ISBLANK(*header)) { in Curl_headers_push()
308 header++; in Curl_headers_push()
319 memcpy(hs->buffer, header, hlen); in Curl_headers_push()