MCPcopy
hub / github.com/mitmproxy/mitmproxy / test_unknown_ext

Function test_unknown_ext

test/mitmproxy/proxy/layers/test_websocket.py:433–441  ·  view source on GitHub ↗
(ws_testdata)

Source from the content-addressed store, hash-verified

431
432
433def test_unknown_ext(ws_testdata):
434 tctx, playbook, flow = ws_testdata
435 flow.response.headers["Sec-WebSocket-Extensions"] = "funky-bits; param=42"
436 assert (
437 playbook
438 << Log("Ignoring unknown WebSocket extension 'funky-bits'.")
439 << websocket.WebsocketStartHook(flow)
440 >> reply()
441 )
442
443
444def test_websocket_connection_repr(tctx):

Callers

nothing calls this directly

Calls 2

LogClass · 0.90
replyClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…