RDFS
The Rice Comp413 2017 class' continuation on the work of the 2016 RDFS.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
http_handlers.h
1 // Copyright 2017 Rice University, COMP 413 2017
2 
3 #ifndef WEB_RDFS_INCLUDE_HTTP_HANDLERS_H_
4 #define WEB_RDFS_INCLUDE_HTTP_HANDLERS_H_
5 
6 #include "server_http.h"
7 #include "web_rdfs_server.h"
8 #include "web_request_translator.h"
9 
10 #include <string>
11 #include <fstream>
12 #include <streambuf>
13 
15 
16 void setZk(zkclient::ZkNnClient *zk_arg);
17 
25 void frontend_handler(std::shared_ptr<HttpsServer::Response> response,
26  std::shared_ptr<HttpsServer::Request> request);
27 
34 void get_handler(std::shared_ptr<HttpsServer::Response> response,
35  std::shared_ptr<HttpsServer::Request> request);
36 
43 void post_handler(std::shared_ptr<HttpsServer::Response> response,
44  std::shared_ptr<HttpsServer::Request> request);
45 
52 void put_handler(std::shared_ptr<HttpsServer::Response> response,
53  std::shared_ptr<HttpsServer::Request> request);
54 
61 void delete_handler(std::shared_ptr<HttpsServer::Response> response,
62  std::shared_ptr<HttpsServer::Request> request);
63 
64 #endif // WEB_RDFS_INCLUDE_HTTP_HANDLERS_H_
Definition: zk_nn_client.h:156