r.pipe
HttpEffect route builder based on IxMonad
Importing
+ pipe
r
namespace function. Creates pipeable RouteEffect builder.
Type declaration
r.pipe
builder pays attention to the order of applied operators.
Correct order:
matchPath
matchType
use
...useEffect
applyMeta
...
+ matchPath
r
namespace function. Matches request path for connected HttpEffect.
Type declaration
Parameters
parameter | definition |
path |
|
+ matchType
r
namespace function. Matches HTTP method type for connected HttpEffect.
Type declaration
Parameters
parameter | definition |
path |
|
+ use
r
namespace function. Registers HTTP middleware with connected HttpEffect.
Type declaration
Parameters
parameter | definition |
middleware |
|
+ useEffect
r
namespace function. Registers HttpEffect.
Type declaration
Parameters
parameter | definition |
effect |
|
+ applyMeta
r
namespace function. Applies metadata to connected HttpEffect.
Type declaration
Parameters
parameter | definition |
meta |
|
Example
Last updated