You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When I write a worker, I can only rely on the data that comes from a local file (mounted folders), environments variables or hardcoded in code. This reduces the kind of projects I can develop.
Describe the solution you'd like
I would like to call an external HTTP API from inside a worker. Every language has its own way to do it, so I want to use those common patterns. For example, the fetch method is the most common API for calling an HTTP endpoint in JavaScript.
To follow the capability-based approach, I want to configure the HTTP endpoints a worker can call. I want to avoid a worker calling random HTTP endpoints. For this, I would add a new section in the TOML file called "features". This object includes one configuration per feature like:
Now that we have support for Go, Rust and JavaScript, I plan to split the remaining languages (Python and Ruby) into separate tasks. Note that languages that requires an external runtime follows a different lifecycle and we can publish them afterwards.
With the new versions, Python and Ruby workers will continue working but they won't be able to make HTTP requests yet. We will work on adding support to those soon 😄
Is your feature request related to a problem? Please describe.
When I write a worker, I can only rely on the data that comes from a local file (mounted folders), environments variables or hardcoded in code. This reduces the kind of projects I can develop.
Describe the solution you'd like
I would like to call an external HTTP API from inside a worker. Every language has its own way to do it, so I want to use those common patterns. For example, the
fetch
method is the most common API for calling an HTTP endpoint in JavaScript.To follow the capability-based approach, I want to configure the HTTP endpoints a worker can call. I want to avoid a worker calling random HTTP endpoints. For this, I would add a new section in the TOML file called "features". This object includes one configuration per feature like:
Host implementation
Language implementation
I will start with JavaScript, but I will extend the support to other languages soon:
Future implementations
The text was updated successfully, but these errors were encountered: