* libanthracite files are now all in lib/ * anthracite-bin + anthracite-api-bin files are now all in src/ * socket split into header and source properly
21 lines
456 B
C++
21 lines
456 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include "../http/request.hpp"
|
|
#include "../http/response.hpp"
|
|
|
|
namespace anthracite::backends {
|
|
|
|
class backend {
|
|
public:
|
|
backend() = default;
|
|
virtual ~backend() = default;
|
|
backend(backend const&) = delete;
|
|
backend& operator = (backend const&) = delete;
|
|
backend(backend&&) = delete;
|
|
backend& operator=(backend&&) = delete;
|
|
virtual std::unique_ptr<http::response> handle_request(http::request& req) = 0;
|
|
};
|
|
|
|
};
|