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)
| 457 | return self._get_argument(name, default, self.request.arguments, strip) |
| 458 | |
| 459 | def get_arguments(self, name: str, strip: bool = True) -> List[str]: |
| 460 | """Returns a list of the arguments with the given name. |
| 461 | |
| 462 | If the argument is not present, returns an empty list. |
| 463 | |
| 464 | This method searches both the query and body arguments. |
| 465 | """ |
| 466 | |
| 467 | # Make sure `get_arguments` isn't accidentally being called with a |
| 468 | # positional argument that's assumed to be a default (like in |
| 469 | # `get_argument`.) |
| 470 | assert isinstance(strip, bool) |
| 471 | |
| 472 | return self._get_arguments(name, self.request.arguments, strip) |
| 473 | |
| 474 | def get_body_argument( |
| 475 | self, |