MCPcopy
hub / github.com/tornadoweb/tornado / get_arguments

Method get_arguments

tornado/web.py:478–491  ·  view source on GitHub ↗

Returns a list of the arguments with the given name. If the argument is not present, returns an empty list. This method searches both the query and body arguments.

(self, name: str, strip: bool = True)

Source from the content-addressed store, hash-verified

476 return self._get_argument(name, default, self.request.arguments, strip)
477
478 def get_arguments(self, name: str, strip: bool = True) -> List[str]:
479 """Returns a list of the arguments with the given name.
480
481 If the argument is not present, returns an empty list.
482
483 This method searches both the query and body arguments.
484 """
485
486 # Make sure `get_arguments` isn't accidentally being called with a
487 # positional argument that's assumed to be a default (like in
488 # `get_argument`.)
489 assert isinstance(strip, bool)
490
491 return self._get_arguments(name, self.request.arguments, strip)
492
493 @overload
494 def get_body_argument(self, name: str, default: str, strip: bool = True) -> str:

Callers 4

getMethod · 0.80
getMethod · 0.80
prepareMethod · 0.80
getMethod · 0.80

Calls 1

_get_argumentsMethod · 0.95

Tested by 4

getMethod · 0.64
getMethod · 0.64
prepareMethod · 0.64
getMethod · 0.64