|
Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _c08db816_ac02_484c_8e9a_ab816c5198c7
10 #define _c08db816_ac02_484c_8e9a_ab816c5198c7
24 class ODIL_API HTTPResponse:
public Message
34 std::string
const & http_version=
"",
35 unsigned int status=0, std::string
const & reason=
"",
36 Headers const & headers={}, std::string
const & body=
"");
45 std::string
const & get_http_version()
const;
48 void set_http_version(std::string
const & http_version);
51 unsigned int get_status()
const;
54 void set_status(
unsigned int status);
57 std::string
const & get_reason()
const;
60 void set_reason(std::string
const & target);
63 std::string _http_version;
82 #endif // _c08db816_ac02_484c_8e9a_ab816c5198c7
std::ostream & operator<<(std::ostream &stream, HTTPRequest const &request)
Output an HTTP request to a stream.
Definition: Association.h:25
#define ODIL_API
Definition: odil.h:28
HTTP Response.
Definition: HTTPResponse.h:37
std::map< std::string, std::string > Headers
Associative container for headers.
Definition: Message.h:48
std::istream & operator>>(std::istream &stream, HTTPRequest &request)
Input an HTTP request from a stream.