Returns the data sent with the request.
()
| 468 | |
| 469 | |
| 470 | def 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 | |
| 481 | def setcookie( |