\Pydio\Core\Http\WopiMiddleware

Class RestWopiMiddleware Specific middleware to handle Wopi actions

Summary

Methods
Properties
Constants
handleRequest()
emitResponse()
__construct()
No public properties found
No constants found
parseRequestRouteAndParams()
$base
N/A
No private methods found
No private properties found
N/A

Properties

$base

$base : 

Type

Methods

handleRequest()

handleRequest(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response, callable|null  $next = null) : \Psr\Http\Message\ResponseInterface

Standard interface for PSR-7 Middleware

Parameters

\Psr\Http\Message\ServerRequestInterface $request

Interface that encapsulate http request parameters

\Psr\Http\Message\ResponseInterface $response

Interface encapsulating the response

callable|null $next

Next middleware to call

Throws

\Pydio\Core\Exception\PydioException

Returns

\Psr\Http\Message\ResponseInterface —

Returns the modified response interface.

emitResponse()

emitResponse(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) : void

Output the response to the browser, if no headers were already sent.

Parameters

\Psr\Http\Message\ServerRequestInterface $request
\Psr\Http\Message\ResponseInterface $response

__construct()

__construct(  $base) 

RestWopiMiddleware constructor.

Parameters

$base

parseRequestRouteAndParams()

parseRequestRouteAndParams(\Psr\Http\Message\ServerRequestInterface  $request, \Psr\Http\Message\ResponseInterface  $response) 

Parameters

\Psr\Http\Message\ServerRequestInterface $request
\Psr\Http\Message\ResponseInterface $response

Throws

\Pydio\Core\Exception\PydioException