method "*" matches every method, and a path ending in
/* matches its prefix too. prefix is the mount point removed
from the request URL before the handler runs.
Attributes#
| Attribute | Type | Description |
|---|---|---|
method | Method | |
path | str | |
handler | Effect[HttpServerResponse, E_co, R_co] | |
uninterruptible | bool = False | |
prefix | str | None = None |
Functions#
__init__#
__init__(method, path, handler, uninterruptible=False, prefix=None) -> None| Parameter | Type | Description |
|---|---|---|
method | Method | |
path | str | |
handler | Effect[HttpServerResponse, E_co, R_co] | |
uninterruptible | bool = False | |
prefix | str | None = None |
pipe#
pipe[B](f) -> B| Parameter | Type | Description |
|---|---|---|
f | Callable[[Self], B] |
Returns B
def pipe[B](self, f: Callable[[Self], B], /) -> B:
return f(self)