Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add HTTP Request/Response Parser #21

Open
Jaysmito101 opened this issue Feb 11, 2023 · 0 comments
Open

Feature Request: Add HTTP Request/Response Parser #21

Jaysmito101 opened this issue Feb 11, 2023 · 0 comments
Labels
hard help wanted Extra attention is needed jwoc

Comments

@Jaysmito101
Copy link
Owner

Jaysmito101 commented Feb 11, 2023

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 Jaysmito101 added hard jwoc help wanted Extra attention is needed labels Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hard help wanted Extra attention is needed jwoc
Projects
None yet
Development

No branches or pull requests

1 participant