Lines Matching defs:header
245 static char* wget_find_header(char *header, char *val) {
246 char *v= wget_strncaseafter(header, val);
250 static int wget_has_header(char *header, char *val)
252 return wget_find_header(header, val) != NULL;
255 static char *wget_redirect(char *header)
257 char *redir = wget_find_header(header, WGET_LOCATION);
262 static char *wget_filename(char *header, char *path)
264 char *f = wget_find_header(header, WGET_FILENAME);
303 // Header ranges toybuf[0...body) header length strlen(toybuf)
306 // Per RFC7230 the header cannot contain a NUL octet so we NUL terminate at
307 // the footer of the header. This allows for normal string functions to be
308 // used when processing the header.
310 if (!body) error_exit("response header too large");
334 // pointing at half of the header boundary, aka '\r\n'. This simplifies