RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | List of all members
ServerTest Class Reference
Inheritance diagram for ServerTest:
SimpleWeb::ServerBase< HTTP >

Public Member Functions

void accept () noexceptoverride
 
void parse_request_test ()
 
- Public Member Functions inherited from SimpleWeb::ServerBase< HTTP >
virtual void start ()
 
void stop () noexcept
 Stop accepting new requests, and close current connections.
 

Additional Inherited Members

- Public Attributes inherited from SimpleWeb::ServerBase< HTTP >
Config config
 Set before calling start().
 
std::map< regex_orderable,
std::map< std::string,
std::function< void(std::shared_ptr
< typename ServerBase< HTTP >
::Response >, std::shared_ptr
< typename ServerBase< HTTP >
::Request >)> > > 
resource
 Warning: do not add or remove resources after start() is called.
 
std::map< std::string,
std::function< void(std::shared_ptr
< typename ServerBase< HTTP >
::Response >, std::shared_ptr
< typename ServerBase< HTTP >
::Request >)> > 
default_resource
 
std::function< void(std::shared_ptr
< typename ServerBase< HTTP >
::Request >, const error_code &)> 
on_error
 
std::function< void(std::unique_ptr
< HTTP > &, std::shared_ptr
< typename ServerBase< HTTP >
::Request >)> 
on_upgrade
 
std::shared_ptr< asio::io_service > io_service
 If you have your own asio::io_service, store its pointer here before running start().
 
- Protected Member Functions inherited from SimpleWeb::ServerBase< HTTP >
 ServerBase (unsigned short port) noexcept
 
std::shared_ptr< Connection > create_connection (Args &&...args) noexcept
 
void read_request_and_content (const std::shared_ptr< Session > &session)
 
void find_resource (const std::shared_ptr< Session > &session)
 
void write_response (const std::shared_ptr< Session > &session, std::function< void(std::shared_ptr< typename ServerBase< HTTP >::Response >, std::shared_ptr< typename ServerBase< HTTP >::Request >)> &resource_function)
 
- Protected Attributes inherited from SimpleWeb::ServerBase< HTTP >
bool internal_io_service
 
std::unique_ptr
< asio::ip::tcp::acceptor > 
acceptor
 
std::vector< std::thread > threads
 
std::shared_ptr
< std::unordered_set
< Connection * > > 
connections
 
std::shared_ptr< std::mutex > connections_mutex
 
std::shared_ptr< ScopeRunnerhandler_runner
 

The documentation for this class was generated from the following file: