Files
Juliet/Romeo/src/HttpClient.h
T

23 lines
514 B
C++

#pragma once
#include <Core/Common/String.h>
namespace Romeo
{
class HttpClient
{
public:
// Sends a POST request over HTTP/HTTPS.
// Response data is allocated on the provided arena and returned in outResponse.
[[nodiscard]] static bool Post(
Arena* arena,
const String& host,
int port,
const String& path,
bool isHttps,
const String& requestBody,
String& outResponse
);
};
}