|
Odil
A C++11 library for the DICOM standard
|
Go to the documentation of this file.
9 #ifndef _a927d586_9154_4f1e_bd56_82f2b6f0450d
10 #define _a927d586_9154_4f1e_bd56_82f2b6f0450d
25 class ODIL_API HTTPRequest:
public Message
35 std::string
const & method=
"", URL
const & target={},
36 std::string
const & http_version=
"HTTP/1.0",
37 Headers const & headers={}, std::string
const & body=
"");
46 std::string
const & get_method()
const;
49 void set_method(std::string
const & method);
52 URL const & get_target()
const;
55 void set_target(
URL const & target);
58 std::string
const & get_http_version()
const;
61 void set_http_version(std::string
const & http_version);
66 std::string _http_version;
82 #endif // _a927d586_9154_4f1e_bd56_82f2b6f0450d
HTTP request.
Definition: HTTPRequest.h:38
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
Uniform resource locator.
Definition: URL.h:38
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.