Provided a callback, an existing request object, and optionally an
existing response object, create and return the Server instance.
If no Response object is provided, one will be created.
public static createServerFromRequest ( callable $callback, Psr\Http\Message\ServerRequestInterface $request, Psr\Http\Message\ResponseInterface $response = null ) : static | ||
$callback | callable | |
$request | Psr\Http\Message\ServerRequestInterface | |
$response | Psr\Http\Message\ResponseInterface | |
return | static |