ZeroEQ  0.9.0
ZeroEQ - Zero Event Queue
request.h
1 /* Copyright (c) 2017, EPFL/Blue Brain Project
2  * Stefan.Eilemann@epfl.ch
3  * Raphael.Dumusc@epfl.ch
4  */
5 
6 #pragma once
7 
8 #include <zeroeq/types.h>
9 
10 #include <string> // member
11 
12 namespace zeroeq
13 {
14 namespace http
15 {
17 enum class Method
18 {
19  GET,
20  POST,
21  PUT,
22  PATCH,
23  DELETE,
24  OPTIONS,
25  ALL
26 };
27 
50 struct Request
51 {
52  Method method;
53  std::string path;
54  std::string source;
55  std::string query;
56  std::string body;
57 };
58 }
59 }
Method
HTTP method used in a Request.
Definition: request.h:17
HTTP Request with method, path and body.
Definition: request.h:50
Publish-subscribe and request-reply.
Definition: client.h:10