0 follower

Interface Yiisoft\Request\Body\ParserInterface

Implemented byYiisoft\Request\Body\Parser\JsonParser

Parser allows to parse raw server request body.

Public Methods

Hide inherited methods

Method Description Defined By
parse() Parse raw server request body. Yiisoft\Request\Body\ParserInterface

Method Details

Hide inherited methods

parse() public abstract method

Parse raw server request body.

public abstract array|object|null parse ( string $rawBody )
$rawBody string

Raw server request body.

return array|object|null

Parsing result.

throws Yiisoft\Request\Body\ParserException

when parsing can not be done.

                public function parse(string $rawBody);