Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _d7a272d7_9beb_43c1_a5a1_fce4c0245c80
10 #define _d7a272d7_9beb_43c1_a5a1_fce4c0245c80
30 typedef std::map<std::string, std::string> Headers;
37 Message(Headers
const & headers={}, std::string
const & body=
"");
46 Headers const & get_headers()
const;
49 void set_headers(
Headers const & headers);
57 bool has_header(std::string
const & name)
const;
66 std::string
const & get_header(std::string
const & name)
const;
69 void set_header(std::string
const & name, std::string
const & value);
72 std::string
const & get_body()
const;
75 void set_body(std::string
const & body);
81 Headers::const_iterator _find_header(std::string
const & name)
const;
98 #endif // _d7a272d7_9beb_43c1_a5a1_fce4c0245c80
std::ostream & operator<<(std::ostream &stream, HTTPRequest const &request)
Output an HTTP request to a stream.
Definition: Association.h:24
#define ODIL_API
Definition: odil.h:28
std::map< std::string, std::string > Headers
Associative container for headers.
Definition: Message.h:48
RFC 5322 Message (i.e. headers with body).
Definition: Message.h:38
std::istream & operator>>(std::istream &stream, HTTPRequest &request)
Input an HTTP request from a stream.