Functions

parse_methods.h File Reference

Parser :: Parse Methods. More...

#include "../str.h"
#include "msg_parser.h"
Include dependency graph for parse_methods.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Definition in file parse_methods.h.


Function Documentation

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).

Returns:
0 on success, -1 on error

Definition at line 56 of file parse_methods.c.

References _str::len, and _str::s.

Referenced by parse_cseq().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function: