Lines Matching defs:buffer
744 static enum header_state get_header_line(char *buffer, int len, apr_file_t *map)
746 char *buf_end = buffer + len;
753 if (apr_file_gets(buffer, MAX_STRING_LEN, map) != APR_SUCCESS) {
756 } while (buffer[0] == '#');
760 for (cp = buffer; apr_isspace(*cp); ++cp) {
777 if (!strncasecmp(buffer, "Body:", 5))
827 static apr_off_t get_body(char *buffer, apr_size_t *len, const char *tag,
843 if (apr_file_read(map, buffer, len) != APR_SUCCESS) {
851 memcpy(buffer + *len, tag, taglen);
852 endbody = strstr(buffer, tag);
853 if (endbody == buffer + *len) {
856 bodylen = endbody - buffer;
867 pos = -(apr_off_t)(*len - (endbody - buffer));
874 return pos - (endbody - buffer);
945 char buffer[MAX_STRING_LEN];
972 hstate = get_header_line(buffer, MAX_STRING_LEN, *map);
975 char *body1 = lcase_header_name_return_body(buffer, neg->r);
985 if (!strncmp(buffer, "uri:", 4)) {
988 else if (!strncmp(buffer, "content-type:", 13)) {
995 else if (!strncmp(buffer, "content-length:", 15)) {
1011 else if (!strncmp(buffer, "content-language:", 17)) {
1016 else if (!strncmp(buffer, "content-encoding:", 17)) {
1020 else if (!strncmp(buffer, "description:", 12)) {
1030 else if (!strncmp(buffer, "body:", 5)) {
1036 if ((mime_info.body = get_body(buffer, &len, tag, *map)) < 0) {