#include <base/net/HTTPSRequest.h>
Inherits Resource.
|
static const char * | METHOD_GET |
|
static const char * | METHOD_POST |
|
static const char * | METHOD_PUT |
|
static const char * | METHOD_DELETE |
|
◆ HTTPSRequest()
HTTPSRequest::HTTPSRequest |
( |
| ) |
|
◆ getContentLength()
uint64 HTTPSRequest::getContentLength |
( |
| ) |
|
Returns the content length for the response.
◆ getResponse() [1/3]
String HTTPSRequest::getResponse |
( |
| ) |
|
◆ getResponse() [2/3]
◆ getResponse() [3/3]
◆ getResponseHeader() [1/2]
String HTTPSRequest::getResponseHeader |
( |
| ) |
|
Returns the entire response header.
◆ getResponseHeader() [2/2]
String HTTPSRequest::getResponseHeader |
( |
const String & |
name | ) |
|
Returns the value of the given header.
◆ getStatus()
unsigned int HTTPSRequest::getStatus |
( |
| ) |
|
◆ getStatusText()
String HTTPSRequest::getStatusText |
( |
| ) |
|
◆ isSupported()
static bool HTTPSRequest::isSupported |
( |
| ) |
|
|
staticnoexcept |
Returns true if HTTPS is supported by the runtime.
◆ load()
Simple HTTPS request. Return MIME type and bytes.
◆ open()
Opens request.
- Parameters
-
method | The connection method. CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE. |
url | The connection url. |
◆ send()
◆ setAgent()
void HTTPSRequest::setAgent |
( |
const String & |
agent | ) |
|
|
inline |
Sets the user agent header. Call after open() and before send().
◆ setRequestHeader() [1/2]
void HTTPSRequest::setRequestHeader |
( |
const String & |
header | ) |
|
Sets the request header. Call after open() and before send(). Do NOT include CRLF.
◆ setRequestHeader() [2/2]
void HTTPSRequest::setRequestHeader |
( |
const String & |
name, |
|
|
const String & |
value |
|
) |
| |
Sets the request header. Call after open() and before send().