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

Function input

web/webapi.py:456–467  ·  view source on GitHub ↗

Returns a `storage` object with the GET and POST arguments. See `storify` for how `requireds` and `defaults` work.

(*requireds, **defaults)

Source from the content-addressed store, hash-verified

454
455
456def input(*requireds, **defaults):
457 """
458 Returns a `storage` object with the GET and POST arguments.
459 See `storify` for how `requireds` and `defaults` work.
460 """
461 _method = defaults.pop("_method", "both")
462 out = rawinput(_method)
463 try:
464 defaults.setdefault("_unicode", True) # force unicode conversion by default.
465 return storify(out, *requireds, **defaults)
466 except KeyError:
467 raise badrequest()
468
469
470def data():

Callers

nothing calls this directly

Calls 4

rawinputFunction · 0.85
storifyFunction · 0.85
popMethod · 0.80
setdefaultMethod · 0.80

Tested by

no test coverage detected