MediaWiki
REL1_39
BodyValidator.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest\Validator
;
4
5
use
MediaWiki\Rest\HttpException
;
6
use
MediaWiki\Rest\RequestInterface
;
7
14
interface
BodyValidator
{
15
27
public
function
validateBody
(
RequestInterface
$request );
28
29
}
MediaWiki\Rest\HttpException
This is the base exception class for non-fatal exceptions thrown from REST handlers.
Definition
HttpException.php:12
MediaWiki\Rest\RequestInterface
A request interface similar to PSR-7's ServerRequestInterface.
Definition
RequestInterface.php:39
MediaWiki\Rest\Validator\BodyValidator
Interface for validating a request body.
Definition
BodyValidator.php:14
MediaWiki\Rest\Validator\BodyValidator\validateBody
validateBody(RequestInterface $request)
Validate the body of a request.
MediaWiki\Rest\Validator
Definition
BodyValidator.php:3
includes
Rest
Validator
BodyValidator.php
Generated on Thu Nov 21 2024 05:23:57 for MediaWiki by
1.10.0