mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
19 lines
649 B
C++
19 lines
649 B
C++
#ifndef HTTP_SERVER_CALLBACKS_H
|
|
#define HTTP_SERVER_CALLBACKS_H
|
|
|
|
#include <functional>
|
|
|
|
#include <memory>
|
|
|
|
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 &)>;
|
|
|
|
#endif |