kenba / via-httplib

A library for embedding an HTTP or HTTPS server in C++ applications.
Boost Software License 1.0
46 stars 15 forks source link

Replace SocketAdaptors with asio tcp and ssl sockets. #22

Open kenba opened 1 year ago

kenba commented 1 year ago

The HTTP connection class is only used by the tcp_adaptor and ssl_tcp_adaptor which are simply wrappers around the ASIO::ip::tcp::socket and ASIO::ssl::stream respectively.

The overall design could be simplified by redesigning the connection class to use the asio tcp and ssl sockets directly.