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
string
matchType
matchType
r
namespace function. Matches HTTP method type for connected HttpEffect.
Type declaration
Parameters
parameter
definition
path
HttpMethod
use
use
r
namespace function. Registers HTTP middleware with connected HttpEffect.
Type declaration
Parameters
parameter
definition
middleware
HttpMiddlewareEffect
useEffect
useEffect
r
namespace function. Registers HttpEffect.
Type declaration
Parameters
parameter
definition
effect
HttpEffect
applyMeta
applyMeta
r
namespace function. Applies metadata to connected HttpEffect.
Type declaration
Parameters
parameter
definition
meta
RouteMeta
RouteMeta
attributes:
parameter
type
definition
name
<optional> string
route/effect name
continuous
<optional> boolean
overridable
<optional> boolean
if true, the route can be overrode by another route
Example
Last updated