(self, parsed)
| 458 | return json.dumps(data, cls=self.json_encoder) if should_encode else data |
| 459 | |
| 460 | def _get_path(self, parsed): |
| 461 | path = unquote_to_bytes(parsed.path) |
| 462 | # Replace the behavior where non-ASCII values in the WSGI environ are |
| 463 | # arbitrarily decoded with ISO-8859-1. |
| 464 | # Refs comment in `get_bytes_from_wsgi()`. |
| 465 | return path.decode("iso-8859-1") |
| 466 | |
| 467 | def get( |
| 468 | self, path, data=None, secure=False, *, headers=None, query_params=None, **extra |