r.pipe
HttpEffect route builder based on IxMonad
Importing
pipe
pipe
r
namespace function. Creates pipeable RouteEffect builder.
Type declaration
r.pipe
builder pays attention to the order of applied operators.
Correct order:
<optional> applyMeta
matchPath
matchType
use
[...]useEffect
applyMeta
[...]
matchPath
matchPath
r
namespace function. Matches request path for connected HttpEffect.
Type declaration
Parameters
parameter | definition |
path |
|
matchType
matchType
r
namespace function. Matches HTTP method type for connected HttpEffect.
Type declaration
Parameters
parameter | definition |
path |
|
use
use
r
namespace function. Registers HTTP middleware with connected HttpEffect.
Type declaration
Parameters
parameter | definition |
middleware |
|
useEffect
useEffect
r
namespace function. Registers HttpEffect.
Type declaration
Parameters
parameter | definition |
effect |
|
applyMeta
applyMeta
r
namespace function. Applies metadata to connected HttpEffect.
Type declaration
Parameters
parameter | definition |
meta |
|
RouteMeta
attributes:
parameter | type | definition |
| <optional> | route/effect name |
| <optional> | enables continuous mode |
| <optional> | if true, the route can be overrode by another route |
Example
Last updated