Parser :: Content. More...
#include "msg_parser.h"

Go to the source code of this file.
Definition in file parse_content.h.
| int parse_accept_hdr | ( | struct sip_msg * | msg | ) |
It's values are also converted as an null-terminated array of ints. Returns: 1 : OK 0 : hdr not found -1 : error (parse error)
Definition at line 495 of file parse_content.c.
References hdr_field::body, decode_mime_type(), _str::len, MAX_MIMES_NR, hdr_field::parsed, and _str::s.

| char* parse_content_length | ( | char * | buffer, | |
| char * | end, | |||
| int * | len | |||
| ) |
Also tries to recognize the type specified by this header (see th above defines). Returns the first chr after the end of the header.
Definition at line 219 of file parse_content.c.
| int parse_content_type_hdr | ( | struct sip_msg * | msg | ) |
It's value is also converted as int. Returns: n (n>0) : the found type 0 : hdr not found -1 : error (parse error )
Definition at line 388 of file parse_content.c.
References hdr_field::body, decode_mime_type(), get_content_type, _str::len, hdr_field::parsed, and _str::s.
Referenced by get_body_part().


1.7.1