#include <userver/utest/simple_server.hpp>
Toy server for simple network testing.
In constructor opens specified ports in localhost address and listens on them. On each accepted data packet calls user callback.
Definition at line 26 of file simple_server.hpp.
Classes | |
struct | Response |
Public Types | |
enum | Protocol { kTcpIpV4 , kTcpIpV6 } |
enum class | Schema { kHttp , kHttps } |
using | Request = std::string |
using | OnRequest = std::function<Response(const Request&)> |
using | Port = unsigned short |
using utest::SimpleServer::OnRequest = std::function<Response(const Request&)> |
Definition at line 40 of file simple_server.hpp.
using utest::SimpleServer::Port = unsigned short |
Definition at line 42 of file simple_server.hpp.
using utest::SimpleServer::Request = std::string |
Definition at line 39 of file simple_server.hpp.
enum utest::SimpleServer::Protocol |
Definition at line 43 of file simple_server.hpp.
|
strong |
Definition at line 50 of file simple_server.hpp.