(self, name: str, /, **path_params: Any)
| 254 | return Match.NONE, {} |
| 255 | |
| 256 | def url_path_for(self, name: str, /, **path_params: Any) -> URLPath: |
| 257 | seen_params = set(path_params.keys()) |
| 258 | expected_params = set(self.param_convertors.keys()) |
| 259 | |
| 260 | if name != self.name or seen_params != expected_params: |
| 261 | raise NoMatchFound(name, path_params) |
| 262 | |
| 263 | path, remaining_params = replace_params(self.path_format, self.param_convertors, path_params) |
| 264 | assert not remaining_params |
| 265 | return URLPath(path=path, protocol="http") |
| 266 | |
| 267 | async def handle(self, scope: Scope, receive: Receive, send: Send) -> None: |
| 268 | if self.methods and scope["method"] not in self.methods: |
nothing calls this directly
no test coverage detected