-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
210 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...livity/zilla/specs/binding/ws/streams/application/ws.over.h2/echo.binary.data.request.rpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc. | ||
# | ||
# Aklivity licenses this file to you under the Apache License, | ||
# version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
property writeMask ${http:randomBytes(4)} | ||
property client125 ${http:randomBytes(125)} | ||
|
||
connect "zilla://streams/app0" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${ws:beginEx() | ||
.typeId(zilla:id("ws")) | ||
.protocol("chat") | ||
.scheme("http") | ||
.authority("localhost:8080") | ||
.path("/chat") | ||
.build()} | ||
|
||
connected | ||
|
||
# connection established | ||
|
||
write ${client125} | ||
|
||
read ${client125} |
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions
36
...klivity/zilla/specs/binding/ws/streams/application/ws.over.h2/echo.text.data.response.rpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc. | ||
# | ||
# Aklivity licenses this file to you under the Apache License, | ||
# version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
accept "zilla://streams/app0" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
accepted | ||
|
||
read zilla:begin.ext ${ws:beginEx() | ||
.typeId(zilla:id("ws")) | ||
.protocol("chat") | ||
.scheme("http") | ||
.authority("localhost:8080") | ||
.path("/chat") | ||
.build()} | ||
|
||
connected | ||
|
||
# connection established | ||
|
||
read ([0..125] :server125) | ||
|
||
write ${server125} |
50 changes: 50 additions & 0 deletions
50
...o/aklivity/zilla/specs/binding/ws/streams/network/ws.over.h2/echo.binary.data.request.rpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc. | ||
# | ||
# Aklivity licenses this file to you under the Apache License, | ||
# version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
property writeMask ${http:randomBytes(4)} | ||
property client125 ${http:randomBytes(125)} | ||
|
||
connect "zilla://streams/net0" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
|
||
write zilla:begin.ext ${http:beginEx() | ||
.typeId(zilla:id("http")) | ||
.header(":method", "CONNECT") | ||
.header(":scheme", "http") | ||
.header(":authority", "localhost:8080") | ||
.header(":path", "/chat") | ||
.header(":protocol", "websocket") | ||
.header("sec-websocket-protocol", "chat, superchat") | ||
.header("sec-websocket-version", "13") | ||
.header("origin", "http://www.example.com") | ||
.build()} | ||
|
||
|
||
read zilla:begin.ext ${http:beginEx() | ||
.typeId(zilla:id("http")) | ||
.header(":status", "200") | ||
.header("sec-websocket-protocol", "chat") | ||
.build()} | ||
|
||
connected | ||
|
||
write [0x82 0xfd] ${writeMask} | ||
write option mask ${writeMask} | ||
write ${client125} | ||
write option mask [0x00 0x00 0x00 0x00] | ||
|
||
read [0x82 0x7d] ${client125} |
47 changes: 47 additions & 0 deletions
47
.../aklivity/zilla/specs/binding/ws/streams/network/ws.over.h2/echo.binary.data.response.rpt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# | ||
# Copyright 2021-2023 Aklivity Inc. | ||
# | ||
# Aklivity licenses this file to you under the Apache License, | ||
# version 2.0 (the "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at: | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
accept "zilla://streams/net0" | ||
option zilla:window 8192 | ||
option zilla:transmission "duplex" | ||
accepted | ||
|
||
read zilla:begin.ext ${zilla:id("http")} | ||
[0xc1 0x00 0x00 0x00] | ||
[0x08 0x00 0x00 0x00] | ||
[0x07] ":method" [0x07 0x00] "CONNECT" | ||
[0x07] ":scheme" [0x04 0x00] "http" | ||
[0x0a] ":authority" [0x0e 0x00] "localhost:8080" | ||
[0x05] ":path" [0x05 0x00] "/chat" | ||
[0x09] ":protocol" [0x09 0x00] "websocket" | ||
[0x16] "sec-websocket-protocol" [0x0f 0x00] "chat, superchat" | ||
[0x15] "sec-websocket-version" [0x02 0x00] "13" | ||
[0x06] "origin" [0x16 0x00] "http://www.example.com" | ||
|
||
write zilla:begin.ext ${http:beginEx() | ||
.typeId(zilla:id("http")) | ||
.header(":status", "200") | ||
.header("sec-websocket-protocol", "chat") | ||
.build()} | ||
|
||
connected | ||
|
||
read [0x82 0xfd] ([0..4] :readMask) | ||
read option mask ${readMask} | ||
read ([0..125] :server125) | ||
read option mask [0x00 0x00 0x00 0x00] | ||
|
||
write [0x82 0x7d] ${server125} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters