Go to the documentation of this file. 1 #ifndef MYTHHTTPRESPONSE_H
2 #define MYTHHTTPRESPONSE_H
34 std::enable_if_t<std::is_convertible_v<T, QString>,
void>
37 QByteArray
bytes = QString(
"%1: %2\r\n").arg(key, val).toUtf8();
41 std::enable_if_t<!std::is_convertible_v<T, QString>,
void>
44 QByteArray
bytes = QString(
"%1: %2\r\n").arg(key).arg(val).toUtf8();
60 void AddDefaultHeaders();
61 void AddContentHeaders();
std::variant< std::monostate, HTTPData, HTTPFile > HTTPVariant
#define HTTP_DEFAULT_ALLOWED
std::shared_ptr< MythHTTPData > HTTPData
std::shared_ptr< HTTPMap > HTTPHeaders
std::vector< HTTPData > HTTPContents
std::enable_if_t<!std::is_convertible_v< T, QString >, void > AddHeader(const QString &key, T val)
std::shared_ptr< MythHTTPResponse > HTTPResponse
#define HTTP_SOCKET_TIMEOUT_MS
std::shared_ptr< MythHTTPRequest > HTTPRequest2
std::enable_if_t< std::is_convertible_v< T, QString >, void > AddHeader(const QString &key, const T &val)
std::shared_ptr< MythHTTPFile > HTTPFile
HTTPContents m_responseHeaders