My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
request_parser.c File Reference
#include "webserver/connection-handler.h"
#include "logging.h"

Go to the source code of this file.

Macros

#define UNUSED
 

Functions

static int url_callback (http_parser *parser, const char *at, size_t length)
 
static int headers_complete_callback (http_parser *parser)
 
static int header_field_or_value_callback (http_parser *parser, const char *at, size_t length)
 
void init_parser_state (struct parser_state *state)
 
int parse_http (struct parser_state *state, char *buf, ssize_t bytes)
 

Macro Definition Documentation

#define UNUSED

Definition at line 26 of file request_parser.c.

Function Documentation

static int header_field_or_value_callback ( http_parser parser,
const char *  at,
size_t  length 
)
static

Definition at line 45 of file request_parser.c.

static int headers_complete_callback ( http_parser parser)
static

Definition at line 38 of file request_parser.c.

void init_parser_state ( struct parser_state state)

Definition at line 58 of file request_parser.c.

int parse_http ( struct parser_state state,
char *  buf,
ssize_t  bytes 
)

Definition at line 68 of file request_parser.c.

static int url_callback ( http_parser parser,
const char *  at,
size_t  length 
)
static

Definition at line 29 of file request_parser.c.