class VersionedHTTPMiddleware implements HTTPMiddleware (View source)

Initialises the versioned stage when a request is made.

Methods

public
process(HTTPRequest $request, callable $next)

Generate response for the given request

protected
checkPermissions(HTTPRequest $request)

No description

Details

HTTPResponse process(HTTPRequest $request, callable $next)

Generate response for the given request

Parameters

HTTPRequest $request
callable $next

Return Value

HTTPResponse

protected HTTPResponse|true checkPermissions(HTTPRequest $request)

No description

Parameters

HTTPRequest $request

Return Value

HTTPResponse|true

True if ok, httpresponse if error