Corrected documentation of Server<HTTPS> constructor
This commit is contained in:
parent
d6b057a673
commit
cc0dc20947
3 changed files with 4 additions and 4 deletions
|
|
@ -152,7 +152,7 @@ namespace SimpleWeb {
|
||||||
class Connection : public std::enable_shared_from_this<Connection> {
|
class Connection : public std::enable_shared_from_this<Connection> {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
Connection(std::shared_ptr<ScopeRunner> handler_runner_, Args &&... args) noexcept
|
Connection(std::shared_ptr<ScopeRunner> handler_runner_, Args &&...args) noexcept
|
||||||
: handler_runner(std::move(handler_runner_)), socket(new socket_type(std::forward<Args>(args)...)) {}
|
: handler_runner(std::move(handler_runner_)), socket(new socket_type(std::forward<Args>(args)...)) {}
|
||||||
|
|
||||||
std::shared_ptr<ScopeRunner> handler_runner;
|
std::shared_ptr<ScopeRunner> handler_runner;
|
||||||
|
|
|
||||||
|
|
@ -283,7 +283,7 @@ namespace SimpleWeb {
|
||||||
class Connection : public std::enable_shared_from_this<Connection> {
|
class Connection : public std::enable_shared_from_this<Connection> {
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
Connection(std::shared_ptr<ScopeRunner> handler_runner_, Args &&... args) noexcept : handler_runner(std::move(handler_runner_)), socket(new socket_type(std::forward<Args>(args)...)) {}
|
Connection(std::shared_ptr<ScopeRunner> handler_runner_, Args &&...args) noexcept : handler_runner(std::move(handler_runner_)), socket(new socket_type(std::forward<Args>(args)...)) {}
|
||||||
|
|
||||||
std::shared_ptr<ScopeRunner> handler_runner;
|
std::shared_ptr<ScopeRunner> handler_runner;
|
||||||
|
|
||||||
|
|
@ -517,7 +517,7 @@ namespace SimpleWeb {
|
||||||
virtual void accept() = 0;
|
virtual void accept() = 0;
|
||||||
|
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
std::shared_ptr<Connection> create_connection(Args &&... args) noexcept {
|
std::shared_ptr<Connection> create_connection(Args &&...args) noexcept {
|
||||||
auto connections = this->connections;
|
auto connections = this->connections;
|
||||||
auto connection = std::shared_ptr<Connection>(new Connection(handler_runner, std::forward<Args>(args)...), [connections](Connection *connection) {
|
auto connection = std::shared_ptr<Connection>(new Connection(handler_runner, std::forward<Args>(args)...), [connections](Connection *connection) {
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ namespace SimpleWeb {
|
||||||
/**
|
/**
|
||||||
* Constructs a server object.
|
* Constructs a server object.
|
||||||
*
|
*
|
||||||
* @param certification_file If non-empty, sends the given certification file to client.
|
* @param certification_file Sends the given certification file to client.
|
||||||
* @param private_key_file Specifies the file containing the private key for certification_file.
|
* @param private_key_file Specifies the file containing the private key for certification_file.
|
||||||
* @param verify_file If non-empty, use this certificate authority file to perform verification of client's certificate and hostname according to RFC 2818.
|
* @param verify_file If non-empty, use this certificate authority file to perform verification of client's certificate and hostname according to RFC 2818.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue