Parser :: Parse Methods. More...
#include <strings.h>#include "../dprint.h"#include "../trim.h"#include "parse_methods.h"
Go to the source code of this file.
Definition in file parse_methods.c.
| static int parse_method_advance | ( | str * | _next, | |
| enum request_method * | _method | |||
| ) | [static] |
Returns 1 if parse succeeded and 0 otherwise.
Definition at line 175 of file parse_methods.c.
References _str::len, _str::s, and token_char().
Referenced by parse_methods().


| int parse_method_name | ( | str * | s, | |
| enum request_method * | method | |||
| ) |
Parse a method pointed by s & assign its enum bit to method. The string _must_ contain _only_ the method (without trailing or heading whitespace).
Definition at line 56 of file parse_methods.c.
References _str::len, and _str::s.
Referenced by parse_cseq().

| int parse_methods | ( | str * | _body, | |
| unsigned int * | _methods | |||
| ) |
Returns 0 on success and -1 on failure.
Definition at line 361 of file parse_methods.c.
References _str::len, parse_method_advance(), and _str::s.
Referenced by pack_ci(), and parse_allow_header().


1.7.1