Lazy RSS
|
HTTPS request. More...
#include <http.hpp>
Public Member Functions | |
HTTPS_Request (const char *url) | |
Initializes request class alongside with SSL facilities. More... | |
~HTTPS_Request () | |
Default destructor to terminate SSL facilities. More... | |
HTTPS_Request & | set_method (METHOD method) |
Sets method type. More... | |
HTTPS_Request & | set_strict_ssl () |
Sets strict SSL verification mode. More... | |
HTTPS_Request & | set_relaxed_ssl () |
Sets relaxed SSL verification mode. More... | |
HTTP_Response | run () |
Public Member Functions inherited from http::HTTP_Request | |
HTTP_Request (const char *url) | |
Initializes request class. More... | |
HTTP_Request & | set_method (METHOD method) |
Sets method type. More... | |
HTTP_Response | run () |
Protected Attributes | |
std::function< void()> | ssl_init |
Protected Attributes inherited from http::HTTP_Request | |
Poco::URI | uri |
METHOD | method |
Additional Inherited Members | |
Protected Member Functions inherited from http::HTTP_Request | |
const std::string & | method_str () const |
HTTPS request.
|
explicit |
Initializes request class alongside with SSL facilities.
Default method is GET.
url | Valid HTTPS URI string. |
HTTPS_Request::~HTTPS_Request | ( | ) |
Default destructor to terminate SSL facilities.
HTTP_Response HTTPS_Request::run | ( | ) |
HTTPS_Request & HTTPS_Request::set_method | ( | METHOD | method | ) |
Sets method type.
method | HTTP Method type. |
HTTPS_Request & HTTPS_Request::set_relaxed_ssl | ( | ) |
Sets relaxed SSL verification mode.
Failed certificate is accepted.
Default behaviour.
HTTPS_Request & HTTPS_Request::set_strict_ssl | ( | ) |
Sets strict SSL verification mode.
Failed certificate is being rejected.
|
protected |