MCPcopy Index your code
hub / github.com/webpy/webpy / data

Function data

web/webapi.py:470–478  ·  view source on GitHub ↗

Returns the data sent with the request.

()

Source from the content-addressed store, hash-verified

468
469
470def data():
471 """Returns the data sent with the request."""
472 if "data" not in ctx:
473 if ctx.env.get("HTTP_TRANSFER_ENCODING") == "chunked":
474 ctx.data = ctx.env["wsgi.input"].read()
475 else:
476 cl = intget(ctx.env.get("CONTENT_LENGTH"), 0)
477 ctx.data = ctx.env["wsgi.input"].read(cl)
478 return ctx.data
479
480
481def setcookie(

Callers 1

rawinputFunction · 0.85

Calls 2

intgetFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected