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
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=
"");
66 std::string _http_version;
82 #endif // _a927d586_9154_4f1e_bd56_82f2b6f0450d
HTTP request.
Definition: HTTPRequest.h:26
URL const & get_target() const
Return the target.
HTTPRequest(HTTPRequest &&)=default
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
HTTPRequest & operator=(HTTPRequest &&)=default
virtual ~HTTPRequest()=default
Uniform resource locator.
Definition: URL.h:26
HTTPRequest & operator=(HTTPRequest const &)=default
HTTPRequest(std::string const &method="", URL const &target={}, std::string const &http_version="HTTP/1.0", Headers const &headers={}, std::string const &body="")
Constructor.
std::string const & get_method() const
Return the method.
void set_target(URL const &target)
Set the target.
void set_http_version(std::string const &http_version)
Set the HTTP version.
std::string const & get_http_version() const
Return the HTTP version.
RFC 5322 Message (i.e. headers with body).
Definition: Message.h:27
HTTPRequest(HTTPRequest const &)=default
std::istream & operator>>(std::istream &stream, HTTPRequest &request)
Input an HTTP request from a stream.
void set_method(std::string const &method)
Set the method.