|
xrpld
|


Classes | |
| struct | Query |
Public Member Functions | |
| HTTPClientImp (boost::asio::io_context &ioContext, unsigned short const port, std::size_t maxResponseSize, beast::Journal const &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 bytesTransferred) |
| void | handleHeader (boost::system::error_code const &ecResult, std::size_t bytesTransferred) |
| void | handleData (boost::system::error_code const &ecResult, std::size_t bytesTransferred) |
| 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 | cleanupSSLContext () |
| Destroys the global SSL context created by initializeSSLContext(). | |
| static void | get (bool bSSL, boost::asio::io_context &ioContext, 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 const &j) |
| static void | get (bool bSSL, boost::asio::io_context &ioContext, 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 const &j) |
| static void | request (bool bSSL, boost::asio::io_context &ioContext, 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 const &j) |
Static Public Attributes | |
| static constexpr auto | kMaxClientHeaderBytes = kilobytes(32) |
Private Types | |
| using | pointer = std::shared_ptr<HTTPClient> |
Private Attributes | |
| bool | ssl_ {} |
| AutoSocket | socket_ |
| boost::asio::ip::tcp::resolver | resolver_ |
| std::shared_ptr< Query > | query_ |
| boost::asio::streambuf | request_ |
| boost::asio::streambuf | header_ |
| boost::asio::streambuf | response_ |
| std::string | body_ |
| unsigned short const | port_ |
| std::size_t const | maxResponseSize_ |
| int | status_ {} |
| std::function< void(boost::asio::streambuf &sb, std::string const &strHost)> | build_ |
| std::function< bool(boost::system::error_code const &ecResult, int iStatus, std::string const &strData)> | complete_ |
| boost::asio::basic_waitable_timer< std::chrono::steady_clock > | deadline_ |
| boost::system::error_code | shutdown_ |
| std::deque< std::string > | deqSites_ |
| std::chrono::seconds | timeout_ {} |
| beast::Journal | j_ |
Definition at line 60 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 505 of file libxrpl/net/HTTPClient.cpp.
| xrpl::HTTPClientImp::HTTPClientImp | ( | boost::asio::io_context & | ioContext, |
| unsigned short const | port, | ||
| std::size_t | maxResponseSize, | ||
| beast::Journal const & | j ) |
Definition at line 63 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 84 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 100 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 122 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::httpsNext | ( | ) |
Definition at line 150 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleDeadline | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 194 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleShutdown | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 230 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 239 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleConnect | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 271 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleRequest | ( | boost::system::error_code const & | ecResult | ) |
Definition at line 314 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleWrite | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytesTransferred ) |
Definition at line 342 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleHeader | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytesTransferred ) |
Definition at line 369 of file libxrpl/net/HTTPClient.cpp.
| void xrpl::HTTPClientImp::handleData | ( | boost::system::error_code const & | ecResult, |
| std::size_t | bytesTransferred ) |
Definition at line 436 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 465 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 39 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Destroys the global SSL context created by initializeSSLContext().
This releases the underlying boost::asio::ssl::context and any associated OpenSSL resources. Must not be called while any HTTPClient requests are in flight.
Definition at line 49 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 544 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 562 of file libxrpl/net/HTTPClient.cpp.
|
staticinherited |
Definition at line 582 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 507 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 508 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 509 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 517 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 519 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 520 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 521 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 522 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 523 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 524 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 525 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 526 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 529 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 531 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 534 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 536 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 537 of file libxrpl/net/HTTPClient.cpp.
|
private |
Definition at line 538 of file libxrpl/net/HTTPClient.cpp.
|
staticconstexprinherited |
Definition at line 23 of file HTTPClient.h.