Skip to content

Commit

Permalink
Update wasm.md to include some HTTP instructions (#3649)
Browse files Browse the repository at this point in the history
* Update wasm.md to include some HTTP instructions

Signed-off-by: Brendan Burns <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-bindings/wasm.md

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Brendan Burns <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-bindings/wasm.md

Co-authored-by: Mark Fussell <[email protected]>
Signed-off-by: Brendan Burns <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-bindings/wasm.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Brendan Burns <[email protected]>

* Update daprdocs/content/en/reference/components-reference/supported-bindings/wasm.md

Co-authored-by: Hannah Hunter <[email protected]>
Signed-off-by: Brendan Burns <[email protected]>

---------

Signed-off-by: Brendan Burns <[email protected]>
Co-authored-by: Mark Fussell <[email protected]>
Co-authored-by: Hannah Hunter <[email protected]>
  • Loading branch information
3 people authored Aug 4, 2023
1 parent 4d444bd commit dd67308
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,17 @@ Dapr uses [wazero](https://wazero.io) to run these binaries, because it has no
dependencies. This allows use of WebAssembly with no installation process
except Dapr itself.

The Wasm output binding supports making HTTP client calls using the [wasi-http](https://github.com/WebAssembly/wasi-http) specification.
You can find example code for making HTTP calls in a variety of languages here:
* [Golang](https://github.com/dev-wasm/dev-wasm-go/tree/main/http)
* [C](https://github.com/dev-wasm/dev-wasm-c/tree/main/http)
* [.NET](https://github.com/dev-wasm/dev-wasm-dotnet/tree/main/http)
* [TypeScript](https://github.com/dev-wasm/dev-wasm-ts/tree/main/http)

{{% alert title="Note" color="primary" %}}
If you just want to make an HTTP call, it is simpler to use the [service invocation API]({{< ref howto-invoke-non-dapr-endpoints.md >}}). However, if you need to add your own logic - for example, filtering or calling to multiple API endpoints - consider using Wasm.
{{% /alert %}}

## Component format

To configure a Wasm binding, create a component of type
Expand Down

0 comments on commit dd67308

Please sign in to comment.