#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(
            Juliet::Arena* arena,
            const Juliet::String& host,
            int port,
            const Juliet::String& path,
            bool isHttps,
            const Juliet::String& requestBody,
            Juliet::String& outResponse
        );
    };
}
