cgl icon indicating copy to clipboard operation
cgl copied to clipboard

Feature Request: Add HTTP Request/Response Parser

Open Jaysmito101 opened this issue 1 year ago • 0 comments

CGL has a basic http request function but the way it parses the requests received is very basic. It needs a proper parser for HTTP requests to parse it into its own data structure.

Relevant CGL functions:

int CGL_net_http_request(const char* method, const char* host, const char* path, void* 
response_buffer, size_t* size, const char* accept, const char* user_agent, const char* body);
int CGL_net_http_get(const char* host, const char* path, void* buffer, size_t* size, const char* accept, const char* user_agent);
int CGL_net_http_post(const char* host, const char* path, void* buffer, size_t* size, const char* accept, const char* user_agent, const char* body);

Jaysmito101 avatar Feb 11 '23 17:02 Jaysmito101