24 static std::unique_ptr<HTTPServerAcceptor>
make(
27 const std::shared_ptr<HTTPCodecFactory>& codecFactory =
nullptr);
38 const std::shared_ptr<HTTPCodecFactory>& codecFactory,
39 std::vector<RequestHandlerFactory*> handlerFactories,
HTTPTransaction::Handler * newHandler(HTTPTransaction &txn, HTTPMessage *msg) noexceptoverride
static AcceptorConfiguration makeConfig(const HTTPServer::IPConfig &ipConfig, const HTTPServerOptions &opts)
void onConnectionsDrained() override
const HTTPServerOptions & serverOptions_
std::function< void()> completionCallback_
requires E e noexcept(noexcept(s.error(std::move(e))))
HTTPServerAcceptor(const AcceptorConfiguration &conf, const std::shared_ptr< HTTPCodecFactory > &codecFactory, std::vector< RequestHandlerFactory * > handlerFactories, const HTTPServerOptions &options)
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
void onNewConnection(folly::AsyncTransportWrapper::UniquePtr sock, const folly::SocketAddress *address, const std::string &nextProtocolName, wangle::SecureTransportType secureTransportType, const wangle::TransportInfo &tinfo) override
const std::vector< RequestHandlerFactory * > handlerFactories_
void setCompletionCallback(std::function< void()> f)
static std::unique_ptr< HTTPServerAcceptor > make(const AcceptorConfiguration &conf, const HTTPServerOptions &opts, const std::shared_ptr< HTTPCodecFactory > &codecFactory=nullptr)
~HTTPServerAcceptor() override