My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
http_msu.c File Reference
#include "webserver/http_msu.h"
#include "webserver/connection-handler.h"
#include "webserver/dbops.h"
#include "webserver/cache_msu.h"
#include "webserver/write_msu.h"
#include "webserver/read_msu.h"
#include "socket_msu.h"
#include "msu_calls.h"
#include "logging.h"
#include "epollops.h"
#include "msu_state.h"
#include "unused_def.h"
#include "local_msu.h"
#include "webserver/regex_routing_msu.h"

Go to the source code of this file.

Functions

static int send_error (struct local_msu *self, struct http_state *http_state, struct msu_msg_hdr *hdr)
 
static int handle_db (struct http_state *http_state, struct local_msu *self, struct msu_msg *msg)
 
static int clear_state (struct local_msu *self, struct msu_msg *msg)
 
static int handle_parsing (struct read_state *read_state, struct http_state *http_state, struct local_msu *self, struct msu_msg *msg)
 
static int craft_http_response (struct local_msu *self, struct msu_msg *msg)
 
static int http_init (struct local_msu *self, struct msu_init_data *data)
 
static void http_destroy (struct local_msu *self)
 

Variables

struct msu_type WEBSERVER_HTTP_MSU_TYPE
 

Function Documentation

static int clear_state ( struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 80 of file http_msu.c.

static int craft_http_response ( struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 113 of file http_msu.c.

static int handle_db ( struct http_state http_state,
struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 43 of file http_msu.c.

static int handle_parsing ( struct read_state read_state,
struct http_state http_state,
struct local_msu self,
struct msu_msg msg 
)
static

Definition at line 86 of file http_msu.c.

static void http_destroy ( struct local_msu self)
static

Definition at line 198 of file http_msu.c.

static int http_init ( struct local_msu self,
struct msu_init_data data 
)
static

Definition at line 170 of file http_msu.c.

static int send_error ( struct local_msu self,
struct http_state http_state,
struct msu_msg_hdr hdr 
)
static

Definition at line 35 of file http_msu.c.

Variable Documentation

struct msu_type WEBSERVER_HTTP_MSU_TYPE
Initial value:
= {
.name = "Webserver_HTTP_MSU",
.init = http_init,
.destroy = http_destroy,
.receive = craft_http_response,
.receive_error = clear_state
}
static int http_init(struct local_msu *self, struct msu_init_data *data)
Definition: http_msu.c:170
static void http_destroy(struct local_msu *self)
Definition: http_msu.c:198
static int craft_http_response(struct local_msu *self, struct msu_msg *msg)
Definition: http_msu.c:113
static int clear_state(struct local_msu *self, struct msu_msg *msg)
Definition: http_msu.c:80
#define WEBSERVER_HTTP_MSU_TYPE_ID
Definition: msu_ids.h:26

Definition at line 202 of file http_msu.c.