class VersionedHTTPMiddleware implements HTTPMiddleware (View source)

Initialises the versioned stage when a request is made.

Methods

process(HTTPRequest $request, callable $next)

Generate response for the given request

Details

HTTPResponse process(HTTPRequest $request, callable $next)

Generate response for the given request

Parameters

HTTPRequest $request
callable $next

Return Value

HTTPResponse