#include "async_web_server_cpp/http_server.hpp"
#include "async_web_server_cpp/http_reply.hpp"
#include "async_web_server_cpp/websocket_connection.hpp"
#include "async_web_server_cpp/websocket_request_handler.hpp"
#include <signal.h>
#include <ros/package.h>
Go to the source code of this file.
Classes | |
class | WebsocketEchoer |
Functions | |
static void | http_body_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const std::string &body) |
static bool | http_path_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end) |
static bool | http_query_echo (const async_web_server_cpp::HttpRequest &request, async_web_server_cpp::HttpConnectionPtr connection, const char *begin, const char *end) |
int | main (int argc, char **argv) |
void | sig_handler (int signo) |
WebsocketConnection::MessageHandler | websocket_echo (const HttpRequest &request, WebsocketConnectionPtr websocket) |
Variables | |
volatile bool | should_shutdown = false |
static void http_body_echo | ( | const async_web_server_cpp::HttpRequest & | request, |
async_web_server_cpp::HttpConnectionPtr | connection, | ||
const std::string & | body | ||
) | [static] |
Definition at line 15 of file test_web_server.cpp.
static bool http_path_echo | ( | const async_web_server_cpp::HttpRequest & | request, |
async_web_server_cpp::HttpConnectionPtr | connection, | ||
const char * | begin, | ||
const char * | end | ||
) | [static] |
Definition at line 22 of file test_web_server.cpp.
static bool http_query_echo | ( | const async_web_server_cpp::HttpRequest & | request, |
async_web_server_cpp::HttpConnectionPtr | connection, | ||
const char * | begin, | ||
const char * | end | ||
) | [static] |
Definition at line 30 of file test_web_server.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 57 of file test_web_server.cpp.
void sig_handler | ( | int | signo | ) |
Definition at line 11 of file test_web_server.cpp.
WebsocketConnection::MessageHandler websocket_echo | ( | const HttpRequest & | request, |
WebsocketConnectionPtr | websocket | ||
) |
Definition at line 50 of file test_web_server.cpp.
volatile bool should_shutdown = false |
Definition at line 10 of file test_web_server.cpp.