|
rippled
|


Classes | |
| struct | Query |
Public Member Functions | |
| HTTPClientImp (boost::asio::io_context &io_context, unsigned short const port, std::size_t maxResponseSize, beast::Journal &j) | |
| void | makeGet (std::string const &strPath, boost::asio::streambuf &sb, std::string const &strHost) |
| void | request (bool bSSL, std::deque< std::string > deqSites, std::function< void(boost::asio::streambuf &sb, std::string const &strHost)> build, std::chrono::seconds timeout, std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> complete) |
| void | get (bool bSSL, std::deque< std::string > deqSites, std::string const &strPath, std::chrono::seconds timeout, std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> complete) |
| void | httpsNext () |
| void | handleDeadline (boost::system::error_code const &ecResult) |
| void | handleShutdown (boost::system::error_code const &ecResult) |
| void | handleResolve (boost::system::error_code const &ecResult, boost::asio::ip::tcp::resolver::results_type result) |
| void | handleConnect (boost::system::error_code const &ecResult) |
| void | handleRequest (boost::system::error_code const &ecResult) |
| void | handleWrite (boost::system::error_code const &ecResult, std::size_t bytes_transferred) |
| void | handleHeader (boost::system::error_code const &ecResult, std::size_t bytes_transferred) |
| void | handleData (boost::system::error_code const &ecResult, std::size_t bytes_transferred) |
| void | invokeComplete (boost::system::error_code const &ecResult, int iStatus=0, std::string const &strData="") |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Static Public Member Functions | |
| static void | initializeSSLContext (std::string const &sslVerifyDir, std::string const &sslVerifyFile, bool sslVerify, beast::Journal j) |
| static void | get (bool bSSL, boost::asio::io_context &io_context, std::deque< std::string > deqSites, unsigned short const port, std::string const &strPath, std::size_t responseMax, std::chrono::seconds timeout, std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> complete, beast::Journal &j) |
| static void | get (bool bSSL, boost::asio::io_context &io_context, std::string strSite, unsigned short const port, std::string const &strPath, std::size_t responseMax, std::chrono::seconds timeout, std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> complete, beast::Journal &j) |
| static void | request (bool bSSL, boost::asio::io_context &io_context, std::string strSite, unsigned short const port, std::function< void(boost::asio::streambuf &sb, std::string const &strHost)> build, std::size_t responseMax, std::chrono::seconds timeout, std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> complete, beast::Journal &j) |
Static Public Attributes | |
| static constexpr auto | maxClientHeaderBytes = kilobytes(32) |
Private Types | |
| using | pointer = std::shared_ptr< HTTPClient > |
Private Attributes | |
| bool | mSSL |
| AutoSocket | mSocket |
| boost::asio::ip::tcp::resolver | mResolver |
| std::shared_ptr< Query > | mQuery |
| boost::asio::streambuf | mRequest |
| boost::asio::streambuf | mHeader |
| boost::asio::streambuf | mResponse |
| std::string | mBody |
| unsigned short const | mPort |
| std::size_t const | maxResponseSize_ |
| int | mStatus |
| std::function< void(boost::asio::streambuf &sb, std::string const &strHost)> | mBuild |
| std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> | mComplete |
| boost::asio::basic_waitable_timer< std::chrono::steady_clock > | mDeadline |
| boost::system::error_code | mShutdown |
| std::deque< std::string > | mDeqSites |
| std::chrono::seconds | mTimeout |
| beast::Journal | j_ |
Definition at line 35 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 432 of file libxrpl/net/HTTPClient.cpp.
| xrpl::HTTPClientImp::HTTPClientImp | ( | boost::asio::io_context & | io_context, |
| unsigned short const | port, | ||
| std::size_t | maxResponseSize, | ||
| beast::Journal & | j | ||
| ) |
Definition at line 38 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::makeGet | ( | std::string const & | strPath, |
| boost::asio::streambuf & | sb, | ||
| std::string const & | strHost | ||
| ) |
Definition at line 56 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::request | ( | bool | bSSL, |
| std::deque< std::string > | deqSites, | ||
| std::function< void(boost::asio::streambuf &sb, std::string const &strHost)> | build, | ||
| std::chrono::seconds | timeout, | ||
| std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> | complete | ||
| ) |
Definition at line 72 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::get | ( | bool | bSSL, |
| std::deque< std::string > | deqSites, | ||
| std::string const & | strPath, | ||
| std::chrono::seconds | timeout, | ||
| std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> | complete | ||
| ) |
Definition at line 92 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::httpsNext | ( | ) |
Definition at line 114 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleDeadline | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 151 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleShutdown | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 185 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleResolve | ( | boost::system::error_code const & | ecResult, |
| boost::asio::ip::tcp::resolver::results_type | result | ||
| ) |
Definition at line 194 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleConnect | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 219 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleRequest | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 258 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleWrite | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytes_transferred | ||
| ) |
Definition at line 283 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleHeader | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytes_transferred | ||
| ) |
Definition at line 307 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleData | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytes_transferred | ||
| ) |
Definition at line 367 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::invokeComplete | ( | boost::system::error_code const & | ecResult, |
| int | iStatus = 0, |
||
| std::string const & | strData = "" |
||
| ) |
Definition at line 395 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 20 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 469 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 485 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 503 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 434 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 435 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 436 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 444 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 446 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 447 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 448 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 449 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 450 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 451 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 452 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 453 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 454 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 456 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 459 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 461 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 462 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 463 of file libxrpl/net/HTTPClient.cpp.
|
staticconstexprinherited |
Definition at line 23 of file HTTPClient.h.