MediaWiki REL1_35
|
Interface for validating a request body. More...
Public Member Functions | |
validateBody (RequestInterface $request) | |
Validate the body of a request. | |
Interface for validating a request body.
Stable to implement
Definition at line 13 of file BodyValidator.php.
MediaWiki\Rest\Validator\BodyValidator::validateBody | ( | RequestInterface | $request | ) |
Validate the body of a request.
This may return a data structure representing the parsed body. When used in the context of Handler::validateParams(), the returned value will be available to the handler via Handler::getValidatedBody().
RequestInterface | $request |
HttpException | on validation failure |
Implemented in MediaWiki\Rest\Validator\JsonBodyValidator, and MediaWiki\Rest\Validator\NullBodyValidator.