@rcrsr/rill-ext-fetch
v0.18.4
Published
rill extension for HTTP fetch with configurable endpoints
Downloads
191
Maintainers
Readme
@rcrsr/rill-ext-fetch
rill extension for HTTP fetch with configurable endpoints. Provides typed endpoint functions, retry logic, concurrency control, and timeout enforcement.
Install
npm install @rcrsr/rill-ext-fetchQuick Start
rill-config.json
{
"main": "app.rill",
"extensions": {
"mounts": {
"api": "@rcrsr/rill-ext-fetch"
},
"config": {
"api": {
"baseUrl": "https://api.example.com",
"endpoints": {
"getUser": {
"method": "GET",
"path": "/users/:id",
"params": [
{ "name": "id", "type": "string", "location": "path" }
]
}
}
}
}
}
}app.rill
use<ext:api> => $api
$api.getUser("123") -> logrill-runDocumentation
See full documentation for configuration, functions, retry logic, and error handling.
License
MIT
