Skip to content

pawbyte/http_pleasant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http_pleasant

A simple Fork of http.h by mattiasgustavsson

Redownloading CodeBlocks from my site

Make Get and Post request over HTPP( https not supported, no SSL support "yet")

Functions:

http_get


http_t* http_get( char const* url, void* memctx )

Sends a get request to a website via htpp. If the request was invalid, http_get returns NULL.

http_post


http_t* http_post( char const* url, void const* data, size_t size, void* memctx )

Sends a post request to a website via htpp. If the request was invalid, http_post returns NULL.

http_process


http_status_t http_process( http_t* http )

Call each game frame or in a while loop until file has successfully downloaded or failed. Access the current file download and meta-data.

http_release


void http_release( http_t* http )

Call using the post and get functions.

Differences between htpp.h and http_pleasant.h

http_pleasant is mostly http.h and it has only been updated to allow for easy creation of loading bars when downloading files. There is plans to add support for https, but no real word if this will be doable with exact same base codebase. Modified windows headers area as it was throwing compiler errors on CodeBlocks(using MiniGW).

Donate to make http_pleasant greater

========================================= Work on open source projects like this is not possible without funding. The amount of time it takes to update the codebases, create examples, tutorials and more is quite expensive. Please consider either a one-time or monthly donation to keep this engine going and more frequently updated.

We have a Patron Page that you can help fund future open source projects and the updates to this one.

There is also a PayPal one time donation method as well.

I appreciate your generousity and moving this project forward.

About

A simple Fork of (http.h by mattiasgustavsson)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages