23 class HTTPUpstreamSession;
102 std::chrono::milliseconds timeoutMs = std::chrono::milliseconds(0),
126 const std::shared_ptr<folly::SSLContext>& ctx,
127 SSL_SESSION* session =
nullptr,
128 std::chrono::milliseconds timeoutMs = std::chrono::milliseconds(0),
virtual void connectSuccess(HTTPUpstreamSession *session)=0
wangle::TransportInfo transportInfo_
constexpr detail::Map< Move > move
std::unique_ptr< DefaultHTTPCodecFactory > httpCodecFactory_
requires E e noexcept(noexcept(s.error(std::move(e))))
folly::AsyncTransportWrapper::UniquePtr socket_
std::map< OptionKey, int > OptionMap
void setHTTPVersionOverride(bool enabled)
std::unique_ptr< AsyncTransportWrapper, Destructor > UniquePtr
static const folly::SocketAddress & anyAddress()
WheelTimerInstance timeout_
virtual void connectError(const folly::AsyncSocketException &ex)=0
void setHTTPCodecFactory(std::unique_ptr< DefaultHTTPCodecFactory > factory)
static const OptionMap emptyOptionMap
void setPlaintextProtocol(const std::string &plaintextProto)
std::chrono::milliseconds timeElapsed()
~HTTPConnector() override
SteadyClock::time_point TimePoint
const std::string empty_string
void connect(folly::EventBase *eventBase, const folly::SocketAddress &connectAddr, std::chrono::milliseconds timeoutMs=std::chrono::milliseconds(0), const folly::AsyncSocket::OptionMap &socketOptions=folly::AsyncSocket::emptyOptionMap, const folly::SocketAddress &bindAddr=folly::AsyncSocket::anyAddress())
void connectSSL(folly::EventBase *eventBase, const folly::SocketAddress &connectAddr, const std::shared_ptr< folly::SSLContext > &ctx, SSL_SESSION *session=nullptr, std::chrono::milliseconds timeoutMs=std::chrono::milliseconds(0), const folly::AsyncSocket::OptionMap &socketOptions=folly::AsyncSocket::emptyOptionMap, const folly::SocketAddress &bindAddr=folly::AsyncSocket::anyAddress(), const std::string &serverName=empty_string)
void connectErr(const folly::AsyncSocketException &ex) noexceptoverride
HTTPConnector(Callback *callback, folly::HHWheelTimer *timeoutSet)
std::string plaintextProtocol_