(self)
| 255 | """Typed proxy for the request bound to the current plugin Web handler.""" |
| 256 | |
| 257 | def _get_current(self) -> PluginRequest: |
| 258 | try: |
| 259 | return _request_var.get() |
| 260 | except LookupError as exc: |
| 261 | raise RuntimeError( |
| 262 | "astrbot.api.web.request is only available inside a plugin Web API " |
| 263 | "handler." |
| 264 | ) from exc |
| 265 | |
| 266 | @property |
| 267 | def method(self) -> str: |
no test coverage detected