10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultHTTPServerFactory.h
1#ifndef TENDUKE_OSA_DEFAULTHTTPSERVERFACTORY_H
2#define TENDUKE_OSA_DEFAULTHTTPSERVERFACTORY_H
3
4#include "http/server/HTTPServerFactory.h"
5
6namespace tenduke {namespace osa {
7
11class DefaultHTTPServerFactory : public tenduke::http::server::HTTPServerFactory
12{
13public:
14 explicit DefaultHTTPServerFactory(const std::shared_ptr<const tenduke::net::URLCodec> &url_codec)
15 : urlCodec(url_codec)
16 {
17 }
18
19 std::unique_ptr<tenduke::http::server::AbstractHTTPServer> create(std::uint16_t port) const override;
20
21private:
22 const std::shared_ptr<const ::tenduke::net::URLCodec> urlCodec;
23};
24
25}} // osa
26
27#endif //TENDUKE_OSA_DEFAULTHTTPSERVERFACTORY_H
Creates HTTPServer.
Definition HTTPServerFactory.h:14
std::unique_ptr< tenduke::http::server::AbstractHTTPServer > create(std::uint16_t port) const override
Creates the HTTP-server.
Operating system abstraction.
Definition AbstractBaseSocket.h:22
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16