## Class server

zeep::http::server — The most often used server class, contains its own io_context.

## Synopsis

    // In header: <zeep/http/server.hpp>

    class server : public zeep::http::basic_server {
    public:
      // construct/copy/destruct
      server();
      server(const std::string &);
      server(security_context *);
      server(security_context *, const std::string &);

      // public member functions
      virtual boost::asio::io_context & get_io_context();
      virtual void stop();
    };

## Description

### `server` public construct/copy/destruct

1.     server();

   Simple server, no security, no template processor.

2.     server(const std::string & docroot);

   Simple server, no security, create default template processor with docroot.

3.     server(security_context * s_ctxt);

   server with a security context for limited access

4.     server(security_context * s_ctxt, const std::string & docroot);

   server with a security context for limited access, create default template processor with docroot

### `server` public member functions

1.     virtual boost::asio::io_context & get_io_context();

   get_io_context has to be public since we need it to call notify_fork from child code

2.     virtual void stop();

   Stop the server and also stop the io_context.