EffectFactory
Set of factory functions for building router Effect.
Last updated
Set of factory functions for building router Effect.
Last updated
Deprecation warning
With an introduction of Marble.js 3.0, old EffectFactory
HTTP route builder is deprecated. Please use builder instead.
matchPath
EffectFactory
namespace function. Matches request path for connected Effect.
parameter
definition
path
string
EffectFactory matchType
function
matchType
EffectFactory
namespace function. Matches HTTP method type for connected Effect.
parameter
definition
type
HttpMethod = 'POST | 'PUT' | 'PATCH' | 'GET' | 'HEAD' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | '*'
EffectFactory use
function
use
EffectFactory
namespace function. Connects Effect with path and HTTP method type.
parameter
definition
effect
HttpEffect
function
Factorized RouteEffect
object.