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)
| 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: |