Renamed HLAPI to VoidNet_HL and VoidNet to VoidNet_LL
This commit is contained in:
20
include/VoidNet_LL/Http.hpp
Normal file
20
include/VoidNet_LL/Http.hpp
Normal file
@ -0,0 +1,20 @@
|
||||
// https://github.com/mfichman/http
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "VoidNet/Response.hpp"
|
||||
#include "VoidNet/Request.hpp"
|
||||
|
||||
namespace std::net
|
||||
{
|
||||
class Http
|
||||
{
|
||||
public:
|
||||
static Response Get(std::string const& path, std::string const& data = "");
|
||||
static Response Post(std::string const& path, std::string const& data = "");
|
||||
|
||||
private:
|
||||
static Response Send(Request const& request);
|
||||
static std::string Str(Request const& request);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user