mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-09-30 08:44:13 +00:00
Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../Crypto/Crypto.hpp"
|
||||
#include "../Streams/Stream.hpp"
|
||||
#include "HttpUtils.hpp"
|
||||
// clang-format off
|
||||
@@ -66,6 +67,7 @@ class HttpRequest {
|
||||
public:
|
||||
HttpRequest();
|
||||
std::string trusted_root_cert_bundle;
|
||||
std::optional<Crypto::CertificateKeyStore> mTLS_keyStore;
|
||||
bool ignoreSSLErrors;
|
||||
bool followRedirects;
|
||||
|
||||
@@ -73,15 +75,17 @@ class HttpRequest {
|
||||
std::string url;
|
||||
std::string unixSocket;
|
||||
HttpDictionary requestHeaders;
|
||||
HttpRequestBody *body;
|
||||
std::shared_ptr<HttpRequestBody> body;
|
||||
|
||||
static std::shared_ptr<Tesses::Framework::Streams::Stream>
|
||||
EstablishConnection(Uri uri, bool ignoreSSLErrors,
|
||||
std::string trusted_root_cert_bundle);
|
||||
EstablishConnection(
|
||||
Uri uri, bool ignoreSSLErrors, std::string trusted_root_cert_bundle,
|
||||
std::optional<Crypto::CertificateKeyStore> mTLS_keyStore);
|
||||
static std::shared_ptr<Tesses::Framework::Streams::Stream>
|
||||
EstablishUnixPathConnection(std::string unixPath, Uri uri,
|
||||
bool ignoreSSLErrors,
|
||||
std::string trusted_root_cert_bundle);
|
||||
EstablishUnixPathConnection(
|
||||
std::string unixPath, Uri uri, bool ignoreSSLErrors,
|
||||
std::string trusted_root_cert_bundle,
|
||||
std::optional<Crypto::CertificateKeyStore> mTLS_keyStore);
|
||||
|
||||
void SendRequest(std::shared_ptr<Tesses::Framework::Streams::Stream> strm);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user