Lines Matching refs:header_line

565 static int sapi_extract_response_code(const char *header_line)  in sapi_extract_response_code()  argument
570 for (ptr = header_line; *ptr; ptr++) { in sapi_extract_response_code()
628 SAPI_API int sapi_add_header_ex(const char *header_line, size_t header_line_len, bool duplicate, bo… in sapi_add_header_ex() argument
633 ctr.line = header_line; in sapi_add_header_ex()
640 efree((void *) header_line); in sapi_add_header_ex()
670 char *header_line; in sapi_header_op() local
700 header_line = estrndup(p->line, p->line_len); in sapi_header_op()
718 if (header_line_len && isspace(header_line[header_line_len-1])) { in sapi_header_op()
721 } while(header_line_len && isspace(header_line[header_line_len-1])); in sapi_header_op()
722 header_line[header_line_len]='\0'; in sapi_header_op()
726 if (strchr(header_line, ':')) { in sapi_header_op()
727 efree(header_line); in sapi_header_op()
732 sapi_header.header = header_line; in sapi_header_op()
736 sapi_remove_header(&SG(sapi_headers).headers, header_line, header_line_len); in sapi_header_op()
737 efree(header_line); in sapi_header_op()
744 if (header_line[i] == '\n' || header_line[i] == '\r') { in sapi_header_op()
745 efree(header_line); in sapi_header_op()
750 if (header_line[i] == '\0') { in sapi_header_op()
751 efree(header_line); in sapi_header_op()
758 sapi_header.header = header_line; in sapi_header_op()
763 && !strncasecmp(header_line, "HTTP/", 5)) { in sapi_header_op()
765 sapi_update_response_code(sapi_extract_response_code(header_line)); in sapi_header_op()
770 SG(sapi_headers).http_status_line = header_line; in sapi_header_op()
773 colon_offset = strchr(header_line, ':'); in sapi_header_op()
776 if (!strcasecmp(header_line, "Content-Type")) { in sapi_header_op()
778 size_t len = header_line_len - (ptr - header_line), newlen; in sapi_header_op()
797 efree(header_line); in sapi_header_op()
801 } else if (!strcasecmp(header_line, "Content-Length")) { in sapi_header_op()
811 } else if (!strcasecmp(header_line, "Location")) { in sapi_header_op()
827 } else if (!strcasecmp(header_line, "WWW-Authenticate")) { /* HTTP Authentication */ in sapi_header_op()
830 if (sapi_header.header==header_line) { in sapi_header_op()