|
| FakeHttpServer (const std::shared_ptr< std::vector< std::string > > &requestedUrls, const std::shared_ptr< std::vector< std::shared_ptr< tenduke::test::fakes::FakeSocket > > > &responseSockets, const std::chrono::milliseconds &maxLifeTime=std::chrono::seconds(30)) |
|
uint16_t | getPort () override |
| Returns the port where this simple server is listening.
|
|
void | start () override |
| Starts the server.
|
|
void | requestTo (const std::string &requestTarget) |
|
bool | isRunning () const |
|
| AbstractHTTPServer (std::unique_ptr< tenduke::osa::Socket > socket) |
| Constructs new instance.
|
|
void | registerRoute (const std::string &route, const std::shared_ptr< tenduke::http::server::HTTPRequestHandler > &handler) |
| Register a route.
|
|
void | stop () override |
| Stops the server.
|
|
|
std::chrono::milliseconds | maxLifeTime |
|
const std::shared_ptr< std::deque< std::string > > | requestQueue |
|
◆ getPort()
uint16_t tenduke::test::fakes::FakeHttpServer::getPort |
( |
| ) |
|
|
overridevirtual |
◆ start()
void tenduke::test::fakes::FakeHttpServer::start |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files:
- core/oidc/osbrowser/test/fakes/FakeHttpServer.h
- core/oidc/osbrowser/test/fakes/FakeHttpServer.cpp