#include <openssl/ssl.h>
#include "webserver.h"
#include "dbops.h"
#include "request_parser.h"
Go to the source code of this file.
|
| void | init_read_state (struct read_state *state, struct connection *conn) |
| |
| void | init_http_state (struct http_state *state, struct connection *conn) |
| |
| void | init_response_state (struct response_state *state, struct connection *conn) |
| |
| void | init_connection (struct connection *conn, int fd) |
| |
| int | accept_connection (struct connection *conn, int use_ssl) |
| |
| int | read_request (struct read_state *state) |
| |
| int | parse_request (char *req, int req_len, struct http_state *state) |
| |
| int | write_response (struct response_state *state) |
| |
| int | close_connection (struct connection *conn) |
| |
| int | access_database (char *url, struct db_state *state) |
| |
| int | has_regex (char *url) |
| |
| int | craft_error_response (char *url, char *response) |
| |
| int | craft_nonregex_response (char *url, char *response) |
| |
| int | craft_regex_response (char *url, char *response) |
| |
| #define MAX_BODY_LEN 4096 |
| #define MAX_FILEPATH_LEN 512 |
| #define MAX_HEADER_LEN 4096 |
| #define MAX_RECV_LEN 4096 |
| int accept_connection |
( |
struct connection * |
conn, |
|
|
int |
use_ssl |
|
) |
| |
| int access_database |
( |
char * |
url, |
|
|
struct db_state * |
state |
|
) |
| |
| int craft_error_response |
( |
char * |
url, |
|
|
char * |
response |
|
) |
| |
| int craft_nonregex_response |
( |
char * |
url, |
|
|
char * |
response |
|
) |
| |
| int craft_regex_response |
( |
char * |
url, |
|
|
char * |
response |
|
) |
| |
| int has_regex |
( |
char * |
url | ) |
|
| void init_connection |
( |
struct connection * |
conn, |
|
|
int |
fd |
|
) |
| |
| int parse_request |
( |
char * |
req, |
|
|
int |
req_len, |
|
|
struct http_state * |
state |
|
) |
| |