-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUsuarioHandler.h
38 lines (28 loc) · 1.02 KB
/
UsuarioHandler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// Created by victor on 15/10/17.
//
#ifndef CXXDOOR_USUARIOHANDLER_H
#define CXXDOOR_USUARIOHANDLER_H
#include <proxygen/httpserver/RequestHandler.h>
#include <proxygen/lib/utils/StateMachine.h>
#include "CommandProcessor.h"
//#include <folly/Memory.h>
namespace cxxdoor {
class UsuarioHandler : public proxygen::RequestHandler {
public:
UsuarioHandler();
void onRequest(std::unique_ptr<proxygen::HTTPMessage> headers)noexcept override;
void onBody(std::unique_ptr<folly::IOBuf> body) noexcept override;
void onUpgrade(proxygen::UpgradeProtocol prot)noexcept override;
void onEOM()noexcept override;
void requestComplete()noexcept override;
void onError(proxygen::ProxygenError err)noexcept override;
virtual ~UsuarioHandler();
void setResponseHandler(proxygen::ResponseHandler *handler) noexcept override;
void onEgressPaused() noexcept override;
void onEgressResumed()noexcept override;
private:
std::shared_ptr<CommandProcessor> _commandProcessor{nullptr};
};
}
#endif //CXXDOOR_USUARIOHANDLER_H