HTTP request path, e.g. "/index.html" or "/index.html?a=b". Usually starts with a slash, except for OPTIONS requests, which may just be "*". This attribute includes both path and query parts of the target URI (see Sections 3.3 and 3.4 of [RFC3986](https://datatracke
(self)
| 776 | |
| 777 | @property |
| 778 | def path(self) -> str: |
| 779 | """ |
| 780 | HTTP request path, e.g. "/index.html" or "/index.html?a=b". |
| 781 | Usually starts with a slash, except for OPTIONS requests, which may just be "*". |
| 782 | |
| 783 | This attribute includes both path and query parts of the target URI |
| 784 | (see Sections 3.3 and 3.4 of [RFC3986](https://datatracker.ietf.org/doc/html/rfc3986)). |
| 785 | """ |
| 786 | return self.data.path.decode("utf-8", "surrogateescape") |
| 787 | |
| 788 | @path.setter |
| 789 | def path(self, val: str | bytes) -> None: |