eZ\Publish\Core\REST\Server\Request::__construct PHP Method

__construct() public method

Construct request from a set of handlers.
public __construct ( array $handlers = [] ) : Request
$handlers array
return Request
    public function __construct(array $handlers = array())
    {
        $this->addHandler('body', new PropertyHandler\RawBody());
        $this->addHandler('contentType', new PropertyHandler\Override(array(new PropertyHandler\Server('CONTENT_TYPE'), new PropertyHandler\Server('HTTP_CONTENT_TYPE'))));
        $this->addHandler('method', new PropertyHandler\Override(array(new PropertyHandler\Server('HTTP_X_HTTP_METHOD_OVERRIDE'), new PropertyHandler\Server('REQUEST_METHOD'))));
        $this->addHandler('destination', new PropertyHandler\Server('HTTP_DESTINATION'));
        parent::__construct($handlers);
    }