2021-02-03 02:18:37 +01:00
|
|
|
#ifndef HTTP_SERVER_CALLBACKS_H
|
|
|
|
#define HTTP_SERVER_CALLBACKS_H
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
2021-02-03 19:43:54 +01:00
|
|
|
namespace drogon {
|
|
|
|
|
2021-02-03 02:18:37 +01:00
|
|
|
class HttpRequest;
|
|
|
|
using HttpRequestPtr = std::shared_ptr<HttpRequest>;
|
|
|
|
class HttpResponse;
|
|
|
|
using HttpResponsePtr = std::shared_ptr<HttpResponse>;
|
|
|
|
class WebSocketConnectionImpl;
|
|
|
|
using WebSocketConnectionPtr = std::shared_ptr<WebSocketConnectionImpl>;
|
|
|
|
|
|
|
|
using HttpAsyncCallback = std::function<void(const HttpRequestPtr &,std::function<void(const HttpResponsePtr &)> &&)>;
|
|
|
|
using WebSocketNewAsyncCallback = std::function<void(const HttpRequestPtr &, std::function<void(const HttpResponsePtr &)> &&,
|
|
|
|
const WebSocketConnectionPtr &)>;
|
|
|
|
|
2021-02-03 19:43:54 +01:00
|
|
|
}
|
|
|
|
|
2021-02-03 02:18:37 +01:00
|
|
|
#endif
|