extism / assemblyscript-pdk

Extism Plug-in Development Kit (PDK) for AssemblyScript
BSD 3-Clause "New" or "Revised" License
8 stars 3 forks source link

Add `Host.httpRequest` #7

Open zshipko opened 2 years ago

zshipko commented 2 years ago

We should add a wrapper around extism_http_request to make it more usable from AssemblyScript.

One blocker here is the lack of JSON support, I think we would either have to generate a JSON object manually or pull in a new dependency.

nilslice commented 2 years ago

One blocker here is the lack of JSON support, I think we would either have to generate a JSON object manually or pull in a new dependency.

IMO "bundling" some other dependencies that work well is probably a really good thing for this stage of the ecosystem. Even if it's an optional @extism/as-pdk-utils dependency, I think it would help a lot of users make progress quickly.