23 class HTTPServerAcceptor;
43 std::shared_ptr<HTTPCodecFactory>
c =
nullptr)
67 bool allowInsecureConnectionsOnSecureServer{
false};
68 bool enableTCPFastOpen{
false};
95 void bind(std::vector<IPConfig>&& addrs);
96 void bind(std::vector<IPConfig>
const& addrs);
111 void start(std::function<
void()> onSuccess =
nullptr,
112 std::function<
void(std::exception_ptr)> onError =
nullptr);
146 const std::vector<const folly::AsyncSocketBase*>
getSockets()
const;
184 std::vector<wangle::ServerBootstrap<wangle::DefaultPipeline>>
bootstrap_;
folly::Optional< folly::AsyncSocket::OptionMap > acceptorSocketOptions
void start(std::function< void()> onSuccess=nullptr, std::function< void(std::exception_ptr)> onError=nullptr)
void bind(std::vector< IPConfig > &&addrs)
folly::SocketAddress address
int getListenSocket() const
std::shared_ptr< HTTPCodecFactory > codecFactory
std::vector< wangle::SSLContextConfig > sslConfigs
std::vector< IPConfig > addresses() const
void updateTLSCredentials()
std::vector< IPConfig > addresses_
std::unique_ptr< SignalHandler > signalHandler_
folly::EventBase * mainEventBase_
HTTPSession::InfoCallback * sessionInfoCb_
std::shared_ptr< HTTPServerOptions > options_
void updateTicketSeeds(wangle::TLSTicketKeySeeds seeds)
std::vector< wangle::ServerBootstrap< wangle::DefaultPipeline > > bootstrap_
HTTPServer(HTTPServerOptions options)
const std::vector< const folly::AsyncSocketBase * > getSockets() const
void setSessionInfoCallback(HTTPSession::InfoCallback *cb)
IPConfig(folly::SocketAddress a, Protocol p, std::shared_ptr< HTTPCodecFactory > c=nullptr)
folly::Optional< wangle::TLSTicketKeySeeds > ticketSeeds