diff options
| author | engn33r <engn33r@users.noreply.github.com> | 2022-02-25 12:14:55 -0500 |
|---|---|---|
| committer | engn33r <engn33r@users.noreply.github.com> | 2022-02-25 12:14:55 -0500 |
| commit | bccec8bf19749a0191c5ca9110a15b3de0de2298 (patch) | |
| tree | 6245520439a5a648ceecbe4345d0ae21f9a8a57a /docs/source | |
| parent | 330e43ae07e23eadd654c86a0a7b3554b68b1999 (diff) | |
| download | websocket-client-bccec8bf19749a0191c5ca9110a15b3de0de2298.tar.gz | |
Fix examples rendering error
Diffstat (limited to 'docs/source')
| -rw-r--r-- | docs/source/examples.rst | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/docs/source/examples.rst b/docs/source/examples.rst index d9e30cb..26f2ac4 100644 --- a/docs/source/examples.rst +++ b/docs/source/examples.rst @@ -64,31 +64,31 @@ The output you will see will look something like this: :: --- request header --- -GET / HTTP/1.1 -Upgrade: websocket -Host: echo.websocket.events -Origin: testing_websockets.com -Sec-WebSocket-Key: GnuCGEiF3OuyRESXiVnsAQ== -Sec-WebSocket-Version: 13 -Connection: Upgrade - - ------------------------ ---- response header --- -HTTP/1.1 101 Switching Protocols -Connection: Upgrade -Upgrade: websocket -Sec-Websocket-Accept: wvhwrjThsVAyr/V4Hzn5tWMSomI= -Via: 1.1 vegur ------------------------ -++Sent raw: b'\x81\x8d\xd4\xda9\xee\x9c\xbfU\x82\xbb\xf6\x19\xbd\xb1\xa8O\x8b\xa6' -++Sent decoded: fin=1 opcode=1 data=b'Hello, Server' -19 -++Rcv raw: b'\x81*echo.websocket.events sponsored by Lob.com' -++Rcv decoded: fin=1 opcode=1 data=b'echo.websocket.events sponsored by Lob.com' -echo.websocket.events sponsored by Lob.com -++Sent raw: b'\x88\x82\xc9\x8c\x14\x99\xcad' -++Sent decoded: fin=1 opcode=8 data=b'\x03\xe8' + GET / HTTP/1.1 + Upgrade: websocket + Host: echo.websocket.events + Origin: testing_websockets.com + Sec-WebSocket-Key: GnuCGEiF3OuyRESXiVnsAQ== + Sec-WebSocket-Version: 13 + Connection: Upgrade + + + ----------------------- + --- response header --- + HTTP/1.1 101 Switching Protocols + Connection: Upgrade + Upgrade: websocket + Sec-Websocket-Accept: wvhwrjThsVAyr/V4Hzn5tWMSomI= + Via: 1.1 vegur + ----------------------- + ++Sent raw: b'\x81\x8d\xd4\xda9\xee\x9c\xbfU\x82\xbb\xf6\x19\xbd\xb1\xa8O\x8b\xa6' + ++Sent decoded: fin=1 opcode=1 data=b'Hello, Server' + 19 + ++Rcv raw: b'\x81*echo.websocket.events sponsored by Lob.com' + ++Rcv decoded: fin=1 opcode=1 data=b'echo.websocket.events sponsored by Lob.com' + echo.websocket.events sponsored by Lob.com + ++Sent raw: b'\x88\x82\xc9\x8c\x14\x99\xcad' + ++Sent decoded: fin=1 opcode=8 data=b'\x03\xe8' Using websocket-client with "with" statements |
