rippled
Loading...
Searching...
No Matches
Server.h
1#pragma once
2
3#include <xrpl/beast/utility/Journal.h>
4#include <xrpl/beast/utility/PropertyStream.h>
5#include <xrpl/server/Port.h>
6#include <xrpl/server/detail/ServerImpl.h>
7
8#include <boost/asio/io_context.hpp>
9
10namespace xrpl {
11
13template <class Handler>
15make_Server(Handler& handler, boost::asio::io_context& io_context, beast::Journal journal)
16{
17 return std::make_unique<ServerImpl<Handler>>(handler, io_context, journal);
18}
19
20} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::unique_ptr< Server > make_Server(Handler &handler, boost::asio::io_context &io_context, beast::Journal journal)
Create the HTTP server using the specified handler.
Definition Server.h:15