Skip to content

Commit

Permalink
Merge pull request #1921 from MAIF/httpwasm-doc
Browse files Browse the repository at this point in the history
Httpwasm doc
  • Loading branch information
Zwiterrion authored Jun 3, 2024
2 parents 6836d23 + bfe314b commit c760770
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions manual/src/main/paradox/how-to-s/http-wasm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Http WASM

@@include[experimental.md](../includes/experimental.md) { .experimental-feature }

The HTTP handler ABI allows users to write portable HTTP server middleware in a language that compiles to wasm. For example, a Go HTTP service could embed routing middleware written in Zig.

ABI is available [here](https://http-wasm.io/http-handler-abi/).

HTTP-Wasm is a relatively new proposal aimed at extending the capabilities of WebAssembly (Wasm) to the realm of HTTP-based applications, particularly within the context of web servers and proxies.

## Overview

HTTP-Wasm is an initiative to leverage WebAssembly for enhancing and customizing HTTP processing tasks. The main goal is to provide a standardized environment where WebAssembly modules can be used to handle, modify, and extend HTTP request and response workflows. This can be particularly useful in scenarios such as edge computing, API gateways, web servers, and service meshes.

## Key Features and Benefits

Modularity and Flexibility: HTTP-Wasm allows developers to write modular and reusable code that can be executed in a secure and sandboxed environment. This modular approach can help in creating extensible HTTP processing pipelines.

## Security

WebAssembly's sandboxed execution model ensures that modules run in a secure environment, reducing the risk of security vulnerabilities. This makes it a suitable choice for handling potentially untrusted code or inputs in HTTP processing.
3 changes: 2 additions & 1 deletion manual/src/main/paradox/how-to-s/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

in this section, we will explain some mainstream Otoroshi usage scenario's

* @ref:[Http WASM](./http-wasm.md)
* @ref:[Otoroshi and WASM](./wasm-usage.md)
* @ref:[Wasmo](./wasmo-installation.md)
* @ref:[Tailscale integration](./tailscale-integration.md)
Expand Down Expand Up @@ -31,7 +32,7 @@ in this section, we will explain some mainstream Otoroshi usage scenario's

@@@ index


* [Http WASM](./http-wasm.md)
* [WASM usage](./wasm-usage.md)
* [wasmo](./wasmo-installation.md)
* [Tailscale integration](./tailscale-integration.md)
Expand Down

0 comments on commit c760770

Please sign in to comment.