rcpp_framework/core/http_server_callbacks.h

23 lines
672 B
C
Raw Normal View History

#ifndef HTTP_SERVER_CALLBACKS_H
#define HTTP_SERVER_CALLBACKS_H
#include <functional>
#include <memory>
2021-02-03 19:43:54 +01:00
namespace drogon {
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
}
#endif