MCPcopy
hub / github.com/sanic-org/sanic / patch

Function patch

tests/test_request_stream.py:128–135  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

126
127 @app.patch("/patch", stream=True)
128 async def patch(request):
129 result = ""
130 while True:
131 body = await request.stream.read()
132 if body is None:
133 break
134 result += body.decode("utf-8")
135 return text(result)
136
137 request, response = app.test_client.get("/get")
138 assert response.status == 200

Calls 2

textFunction · 0.90
readMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…