Definition at line 584 of file HTTPServerTest.cpp.
std::unique_ptr<CurlClient> ScopedServerTest::connectPlainText |
( |
| ) |
|
|
inlineprotected |
Definition at line 625 of file HTTPServerTest.cpp.
References proxygen::HTTPConnector::connect(), evb_, and timer_.
629 auto client = std::make_unique<CurlClient>(
630 &
evb_, HTTPMethod::GET, url,
nullptr, headers,
"");
631 client->setFlowControlSettings(64 * 1024);
632 client->setLogging(
false);
637 std::chrono::milliseconds(1000));
HHWheelTimer::UniquePtr timer_
folly::SocketAddress address_
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())
Definition at line 604 of file HTTPServerTest.cpp.
References proxygen::HTTPConnector::connectSSL(), evb_, and timer_.
609 auto client = std::make_unique<CurlClient>(
610 &
evb_, HTTPMethod::GET, url,
nullptr, headers,
"");
611 client->setFlowControlSettings(64 * 1024);
612 client->setLogging(
false);
613 client->initializeSsl(caFile,
"http/1.1", certFile, keyFile);
618 client->getSSLContext(),
620 std::chrono::milliseconds(1000));
HHWheelTimer::UniquePtr timer_
folly::SocketAddress address_
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)
Definition at line 596 of file HTTPServerTest.cpp.
References folly::gen::move, and start.
599 auto addresses = res->getAddresses();
600 address_ = addresses.front().address;
constexpr detail::Map< Move > move
folly::SocketAddress address_
HTTPServer::IPConfig cfg_
virtual HTTPServerOptions createDefaultOpts()
void ScopedServerTest::SetUp |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: