Go to the source code of this file.
|
static void | free_http_process (builtin_http_server_args *args) |
|
static void | http_cli_output (uword arg, u8 *buffer, uword buffer_bytes) |
|
void | send_data (stream_session_t *s, u8 *data) |
|
static void | send_error (stream_session_t *s, char *str) |
|
static uword | http_cli_process (vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f) |
|
static void | alloc_http_process (builtin_http_server_args *args) |
|
static void | alloc_http_process_callback (void *cb_args) |
|
static int | session_rx_request (stream_session_t *s) |
|
static int | http_server_rx_callback (stream_session_t *s) |
|
static int | http_server_rx_callback_static (stream_session_t *s) |
|
static int | builtin_session_accept_callback (stream_session_t *s) |
|
static void | builtin_session_disconnect_callback (stream_session_t *s) |
|
static void | builtin_session_reset_callback (stream_session_t *s) |
|
static int | builtin_session_connected_callback (u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail) |
|
static int | builtin_add_segment_callback (u32 client_index, const u8 *seg_name, u32 seg_size) |
|
static int | builtin_redirect_connect_callback (u32 client_index, void *mp) |
|
static int | create_api_loopback (vlib_main_t *vm) |
|
static int | server_attach () |
|
static int | server_listen () |
|
static int | server_create (vlib_main_t *vm) |
|
static clib_error_t * | server_create_command_fn (vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd) |
|
static clib_error_t * | builtin_http_server_main_init (vlib_main_t *vm) |
|
static void alloc_http_process_callback |
( |
void * |
cb_args | ) |
|
|
static |
static int builtin_add_segment_callback |
( |
u32 |
client_index, |
|
|
const u8 * |
seg_name, |
|
|
u32 |
seg_size |
|
) |
| |
|
static |
static int builtin_redirect_connect_callback |
( |
u32 |
client_index, |
|
|
void * |
mp |
|
) |
| |
|
static |
static void http_cli_output |
( |
uword |
arg, |
|
|
u8 * |
buffer, |
|
|
uword |
buffer_bytes |
|
) |
| |
|
static |
static int server_attach |
( |
| ) |
|
|
static |
static int server_listen |
( |
| ) |
|
|
static |
Initial value:= {
}
static int http_server_rx_callback(stream_session_t *s)
static int builtin_add_segment_callback(u32 client_index, const u8 *seg_name, u32 seg_size)
static int builtin_session_connected_callback(u32 app_index, u32 api_context, stream_session_t *s, u8 is_fail)
static int builtin_session_accept_callback(stream_session_t *s)
static int builtin_redirect_connect_callback(u32 client_index, void *mp)
static void builtin_session_disconnect_callback(stream_session_t *s)
static void builtin_session_reset_callback(stream_session_t *s)
Definition at line 484 of file builtin_http_server.c.
const char* html_footer = "</pre></body></html>\r\n" |
|
static |
const char* html_header_static |
|
static |
Initial value:= "<html><head><title>static reply</title></head>"
"<link rel=\"icon\" href=\"data:,\"><body><pre>hello</pre></body>"
"</html>\r\n"
Definition at line 110 of file builtin_http_server.c.
const char* html_header_template |
|
static |
Initial value:= "<html><head><title>%v</title>"
"</head><link rel=\"icon\" href=\"data:,\"><body><pre>"
Definition at line 104 of file builtin_http_server.c.
const char* http_error_template |
|
static |
Initial value:= "HTTP/1.1 %s\r\n"
"Content-Type: text/html\r\n"
"Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n"
"Connection: close\r\n" "Pragma: no-cache\r\n" "Content-Length: 0\r\n\r\n"
Definition at line 97 of file builtin_http_server.c.
const char* http_response |
|
static |
Initial value:= "HTTP/1.1 200 OK\r\n"
"Content-Type: text/html\r\n"
"Expires: Mon, 11 Jan 1970 10:10:10 GMT\r\n"
"Connection: close\r\n"
"Pragma: no-cache\r\n" "Content-Length: %d\r\n\r\n%s"
Definition at line 90 of file builtin_http_server.c.
Initial value:=
{
.path = "test http server",
.short_help = "test http server",
}
static clib_error_t * server_create_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
(constructor) VLIB_CLI_COMMAND (server_create_command)
Definition at line 643 of file builtin_http_server.c.