view include/core/http.h @ 213:58e81b42a0d6

dep/animia: win/x11: find toplevels WAY faster completely different approach. oops!
author Paper <mrpapersonic@gmail.com>
date Sun, 07 Jan 2024 11:11:27 -0500
parents f5940a575d83
children 2f5a9247e501
line wrap: on
line source

#ifndef __core__http_h
#define __core__http_h

#include <QByteArray>
#include <string>
#include <vector>

namespace HTTP {

QByteArray Get(const std::string& url, const std::vector<std::string>& headers = {});
QByteArray Post(const std::string& url, const std::string& data, const std::vector<std::string>& headers = {});

} // namespace HTTP

#endif // __core__http_h