MediaWiki  master
BodyValidator.php
Go to the documentation of this file.
1 <?php
2 
4 
7 
13 interface BodyValidator {
14 
26  public function validateBody( RequestInterface $request );
27 
28 }
MediaWiki\Rest\Validator\BodyValidator
Interface for validating a request body.
Definition: BodyValidator.php:13
MediaWiki\Rest\Validator\BodyValidator\validateBody
validateBody(RequestInterface $request)
Validate the body of a request.
MediaWiki\Rest\RequestInterface
A request interface similar to PSR-7's ServerRequestInterface.
Definition: RequestInterface.php:39
MediaWiki\Rest\HttpException
This is the base exception class for non-fatal exceptions thrown from REST handlers.
Definition: HttpException.php:12
MediaWiki\Rest\Validator
Definition: BodyValidator.php:3