Skip to content

Handler::next() (Page Coming Soon)

Delegate to next step or make inbound calls.

Signature

js
await next();
// url can be string or URL
// url can be relative when string
// init can be Request instance or Request init
await next(url, init?);
await next(request);
await next({ redirect?: url = next.pathname, with?: init });

Arguments

ArgumentTyoeDefaultDescription

Properties

PropertyTypeDescription
next.stepnamestringThe name of the next segment in the URL.
next.pathnamestringThe full path beyond the the active step.

See Also

this

Return Value

Depends on the step handler's return value. If:

ConditionReturn type
Step handler is generator functionGenerator object
Step handler is Quantum functionState object
Step handler uses event.respondWith()LiveResponse
Step handler returns LiveResponseLiveResponse
Step handler returns ResponseResponse
Step handler returns any other value.That value

Differences from fetch():

intro

next()fetch()
Makes only inbound calls.Can make both inbound or outbound calls.
Inherits current request.

MIT Licensed