ClanLib  2.3.7
web_response.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include "../api_network.h"
5 #include "../../Core/System/sharedptr.h"
6 
7 class CL_DataBuffer;
8 class CL_IODevice;
9 class CL_WebResponse_Impl;
10 
15 {
16 public:
18 
19  int get_status_code();
20  CL_String get_status_string();
21 
22  bool has_header_field(const CL_String &name);
23  CL_String get_header_field(const CL_String &name);
24 
25  bool has_content_type();
26  CL_String get_content_type();
27 
28  CL_DataBuffer get_body();
29  CL_String get_body_string();
30  // CL_IODevice get_body_reader();
31 
32 private:
33  CL_SharedPtr<CL_WebResponse_Impl> impl;
34  friend class CL_WebRequest;
35 };