JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
JodaResultRequest.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 23/08/2019.
3 //
4 
5 #ifndef JODA_JODARESULTREQUEST_H
6 #define JODA_JODARESULTREQUEST_H
7 #include <httplib.h>
9 #include <string>
10 
11 namespace joda::network::apiv2 {
12 
18  public:
24  static void registerEndpoint(const std::string &prefix,
25  httplib::Server &server);
26 
27  private:
28  static constexpr auto endpoint = "/result";
29  static constexpr auto chunkSize = 50;
30 
31  static void result(const httplib::Request &req, httplib::Response &res);
32 
33  static void sendResult(httplib::Response &res,
34  const std::shared_ptr<JSONStorage> &result,
35  long long offset, long long count);
36 };
37 
38 } // namespace joda::network::apiv2
39 
40 #endif // JODA_JODARESULTREQUEST_H
Definition: JodaResultRequest.h:17
static void registerEndpoint(const std::string &prefix, httplib::Server &server)
Definition: JodaResultRequest.cpp:9
Definition: API.h:10