Functions

parse_methods.c File Reference

Parser :: Parse Methods. More...

#include <strings.h>
#include "../dprint.h"
#include "../trim.h"
#include "parse_methods.h"
Include dependency graph for parse_methods.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file parse_methods.c.


Function Documentation

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

Here is the call graph for this function:

Here is the caller graph for this function:

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: