TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
tb_http_request.h
1 
9 #ifndef _TurtleBrains_HTTPRequest_h_
10 #define _TurtleBrains_HTTPRequest_h_
11 
12 #include "../../core/tb_configuration.h"
13 #if defined(tb_with_networking)
14 
15 #include "../../core/tb_types.h"
16 #include "../../core/tb_noncopyable.h"
17 
18 #include "tb_http_response.h"
19 
20 namespace tbImplementation
21 {
22  class RequestImplementation;
23 };
24 
25 namespace TurtleBrains
26 {
27  namespace Network
28  {
29  namespace Unstable
30  {
32 
33  namespace HTTP {
34  class Request : public tbCore::Noncopyable
35  {
36  public:
40  Request(const tbCore::tbString& remotePath);
41  ~Request();
42 
43  void AddParameter(const tbCore::tbString& name, const tbCore::tbString& value);
44 
48  Response GetResponse(void);
49 
50  private:
51  tbImplementation::RequestImplementation* mImplementation;
52  };
53 
54  }; /* namespace HTTP */
55 
57  }; /* namespace Unstable */
58  }; /* namespace Network */
59 }; /* namespace TurtleBrains */
60 
62 
63 #endif /* tb_with_networking */
64 #endif /* _TurtleBrains_HTTPRequest_h_ */
Definition: tb_noncopyable.h:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
std::string tbString
Definition: tb_string.h:335
Definition: tb_http_request.h:27
Definition: tb_application_dialog.h:19