Return a URL string pointing to the host and point of the server Args: path: the path to a resource on the server query: a dictionary or list of query parameters
(self, path: str = "", query: Any | None = None)
| 68 | return self._records |
| 69 | |
| 70 | def url(self, path: str = "", query: Any | None = None) -> str: |
| 71 | """Return a URL string pointing to the host and point of the server |
| 72 | |
| 73 | Args: |
| 74 | path: the path to a resource on the server |
| 75 | query: a dictionary or list of query parameters |
| 76 | """ |
| 77 | return urlunparse( |
| 78 | [ |
| 79 | "http", |
| 80 | f"{self.host}:{self.port}", |
| 81 | path, |
| 82 | "", |
| 83 | urlencode(query or ()), |
| 84 | "", |
| 85 | ] |
| 86 | ) |
| 87 | |
| 88 | def list_logged_exceptions( |
| 89 | self, |