Skip to content

Commit 6ef46b7

Browse files
committed
Websocket input_headers
1 parent 6b6487b commit 6ef46b7

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

v2.9/krakend.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9170,16 +9170,17 @@
91709170
},
91719171
"input_headers": {
91729172
"title": "Allowed Headers In",
9173-
"description": "Defines which input headers are allowed to pass to the backend. Notice that you need to declare the `input_headers` at the endpoint level too.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
9173+
"description": "Defines which input headers are allowed to pass to the backend. You don't need to declare the `input_headers` at the endpoint. Use `*` to pass all headers (not recommended, use explicit values instead). There are a few headers that won't be propagated regardless of your configuration, which are: `Upgrade`, `Connection`, `Sec-Websocket-Extensions`, `Sec-Websocket-Version`, and `Sec-Websocket-Key`.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
9174+
"examples": [
9175+
"Authorization",
9176+
"User-Agent",
9177+
"Accept",
9178+
"*"
9179+
],
91749180
"default": [],
91759181
"type": "array",
91769182
"uniqueItems": true,
91779183
"items": {
9178-
"examples": [
9179-
"User-Agent",
9180-
"Accept",
9181-
"*"
9182-
],
91839184
"type": "string"
91849185
}
91859186
},
@@ -9228,13 +9229,15 @@
92289229
"subprotocols": {
92299230
"title": "Subprotocols",
92309231
"description": "The list of subprotocols that the client can use to connect to the websocket.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
9232+
"examples": [
9233+
[
9234+
"streamlit"
9235+
]
9236+
],
92319237
"default": [],
92329238
"type": "array",
92339239
"uniqueItems": true,
92349240
"items": {
9235-
"examples": [
9236-
"streamlit"
9237-
],
92389241
"type": "string"
92399242
}
92409243
},

v2.9/websocket.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,17 @@
4444
"input_headers": {
4545
"$id": "#websocket/input_headers",
4646
"title": "Allowed Headers In",
47-
"description": "Defines which input headers are allowed to pass to the backend. Notice that you need to declare the `input_headers` at the endpoint level too.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
47+
"description": "Defines which input headers are allowed to pass to the backend. You don't need to declare the `input_headers` at the endpoint. Use `*` to pass all headers (not recommended, use explicit values instead). There are a few headers that won't be propagated regardless of your configuration, which are: `Upgrade`, `Connection`, `Sec-Websocket-Extensions`, `Sec-Websocket-Version`, and `Sec-Websocket-Key`.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
48+
"examples": [
49+
"Authorization",
50+
"User-Agent",
51+
"Accept",
52+
"*"
53+
],
4854
"default": [],
4955
"type": "array",
5056
"uniqueItems": true,
5157
"items": {
52-
"$id": "#websocket/input_headers/items",
53-
"examples": [
54-
"User-Agent",
55-
"Accept",
56-
"*"
57-
],
5858
"type": "string"
5959
}
6060
},
@@ -103,13 +103,15 @@
103103
"subprotocols": {
104104
"title": "Subprotocols",
105105
"description": "The list of subprotocols that the client can use to connect to the websocket.\n\nSee: https://www.krakend.io/docs/enterprise/websockets/",
106+
"examples": [
107+
[
108+
"streamlit"
109+
]
110+
],
106111
"default": [],
107112
"type": "array",
108113
"uniqueItems": true,
109114
"items": {
110-
"examples": [
111-
"streamlit"
112-
],
113115
"type": "string"
114116
}
115117
},

0 commit comments

Comments
 (0)