forked from membrane/api-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapis.yaml
More file actions
19 lines (19 loc) · 659 Bytes
/
apis.yaml
File metadata and controls
19 lines (19 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# yaml-language-server: $schema=https://www.membrane-api.io/v7.1.2.json
api:
port: 9999
flow:
# Membrane does not support WebSocket Extensions for now, so we remove the header
- groovy:
src: |
if(exc.getRequest() != null)
exc.getRequest().getHeader().removeFields("Sec-WebSocket-Extensions");
if(exc.getResponse() != null)
exc.getResponse().getHeader().removeFields("Sec-WebSocket-Extensions");
# WebSocket intercepting starts here
- webSocket:
flow:
# logs the content of a WebSocket frame to the console
- wsLog: {}
target:
host: localhost
port: 8080