mirror of
https://github.com/alibaba/higress.git
synced 2026-04-29 16:07:28 +08:00
feat: implements text/event-stream(SSE) MIME parser (#1416)
Co-authored-by: 007gzs <007gzs@gmail.com>
This commit is contained in:
26
plugins/wasm-rust/example/sse-timing/README.md
Normal file
26
plugins/wasm-rust/example/sse-timing/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
## Proxy-Wasm plugin example: SSE Timing
|
||||
|
||||
Proxy-Wasm plugin that traces Server-Side Event(SSE) duration from request start.
|
||||
|
||||
### Building
|
||||
|
||||
```sh
|
||||
$ make
|
||||
```
|
||||
|
||||
### Using in Envoy
|
||||
|
||||
This example can be run with [`docker compose`](https://docs.docker.com/compose/install/)
|
||||
and has a matching Envoy configuration.
|
||||
|
||||
```sh
|
||||
$ docker compose up
|
||||
```
|
||||
|
||||
#### Access granted.
|
||||
|
||||
Send HTTP request to `localhost:10000/`:
|
||||
|
||||
```sh
|
||||
$ curl localhost:10000/
|
||||
```
|
||||
Reference in New Issue
Block a user