feat: implements text/event-stream(SSE) MIME parser (#1416)

Co-authored-by: 007gzs <007gzs@gmail.com>
This commit is contained in:
纪卓志
2024-10-24 16:58:45 +08:00
committed by GitHub
parent cdd71155a9
commit e7561c30e5
13 changed files with 885 additions and 6 deletions

View 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/
```