Lines Matching defs:header

86   /* we need a first round to count amount of this header */
155 /* make sure it is the next header of the desired type */
187 static CURLcode namevalue(char *header, size_t hlen, unsigned int type,
190 char *end = header + hlen - 1; /* point to the last byte */
192 *name = header;
195 if(*header != ':')
197 header++;
200 /* Find the end of the header name */
201 while(*header && (*header != ':'))
202 ++header;
204 if(*header)
206 *header++ = 0;
211 while(*header && ISBLANK(*header))
212 header++;
214 *value = header;
217 while((end > header) && ISSPACE(*end))
223 size_t vlen) /* length of the incoming header */
246 /* since this header block might move in the realloc below, it needs to
255 /* ->name' and ->value point into ->buffer (to keep the header allocation
274 * Curl_headers_push() gets passed a full HTTP header to store. It gets called
275 * immediately before the header callback. The header is CRLF terminated.
277 CURLcode Curl_headers_push(struct Curl_easy *data, const char *header,
283 size_t hlen; /* length of the incoming header */
287 if((header[0] == '\r') || (header[0] == '\n'))
291 end = strchr(header, '\r');
293 end = strchr(header, '\n');
295 /* neither CR nor LF as terminator is not a valid header */
298 hlen = end - header;
300 if((header[0] == ' ') || (header[0] == '\t')) {
302 /* line folding, append value to the previous header's value */
303 return unfold_value(data, header, hlen);
305 /* Can't unfold without a previous header. Instead of erroring, just
307 while(hlen && ISBLANK(*header)) {
308 header++;
319 memcpy(hs->buffer, header, hlen);