|
Clio
develop
The XRP Ledger API server.
|
The next generation web server implementation. More...
Classes | |
| class | Connection |
| A class representing a connection to a client. More... | |
| class | ConnectionMetadata |
| An interface for a connection metadata class. More... | |
| class | Request |
| Represents an HTTP or WebSocket request. More... | |
| class | Response |
| Represents an HTTP or Websocket response. More... | |
| class | RPCServerHandler |
| The server handler for RPC requests called by web server. More... | |
| class | Server |
| Web server class. More... | |
| class | SubscriptionContext |
| Implementation of SubscriptionContextInterface. More... | |
Typedefs | |
| using | ConnectionPtr = std::unique_ptr<Connection> |
| A pointer to a connection. | |
| using | Error = boost::system::error_code |
| Error of any async operation. | |
| using | MessageHandler |
| Handler for messages. | |
Enumerations | |
| enum class | ProcessingPolicy { Sequential , Parallel } |
| Requests processing policy. More... | |
Functions | |
| std::expected< Server, std::string > | makeServer (util::config::ClioConfigDefinition const &config, Server::OnConnectCheck onConnectCheck, Server::OnIpChangeHook onIpChangeHook, Server::OnDisconnectHook onDisconnectHook, boost::asio::io_context &context) |
| Create a new Server. | |
The next generation web server implementation.
| using web::ng::MessageHandler |
Handler for messages.
|
strong |
| std::expected< Server, std::string > web::ng::makeServer | ( | util::config::ClioConfigDefinition const & | config, |
| Server::OnConnectCheck | onConnectCheck, | ||
| Server::OnIpChangeHook | onIpChangeHook, | ||
| Server::OnDisconnectHook | onDisconnectHook, | ||
| boost::asio::io_context & | context ) |
Create a new Server.
| config | The configuration. |
| onConnectCheck | The check to perform on each client connection. |
| onIpChangeHook | The hook to call when a client's IP changes. |
| onDisconnectHook | The hook to call when client disconnects. |
| context | The boost::asio::io_context to use. |