mirror of
https://github.com/davidallendj/gdpm.git
synced 2025-12-20 11:37:00 -07:00
- Update `README.md` file with examples - Fixed error messages showing no or wrong message - Changed the prompt message when installing, removing, etc. - Changed how http::request works - Added `http::multi` class for parallel downloads - Removed separate `concepts.hpp` file TODO: Fix ZIP not extracting after running the `install` command
15 lines
No EOL
420 B
Markdown
15 lines
No EOL
420 B
Markdown
# GDPM HTTP Example
|
|
|
|
This is an example showing how to use the GDPM HTTP library to download files. The library uses RapidJSON to get results.
|
|
|
|
|
|
Here is a quick snippet to get started:
|
|
```c++
|
|
// Get a full list of assets
|
|
rest_api::context context = rest_api::make_context();
|
|
rapidjson::Document doc = http::get_asset_list(
|
|
"https://godotengine.org/asset-library/api",
|
|
context
|
|
)
|
|
// ... parse the rapidjson::Document
|
|
``` |