RestContext::processResponse PHP Метод

processResponse() публичный Метод

This public method is also for other context(s) to process REST API call and inject response into this context.
public processResponse ( Buzz\Message\Response $response = null, boolean $asJson = true ) : void
$response Buzz\Message\Response
$asJson boolean Process the response as JSON or not.
Результат void
    public function processResponse(\Buzz\Message\Response $response = null, $asJson = true)
    {
        if (!empty($response)) {
            $this->response = $response;
        }
        return $this->processResponseBody($this->response->getContent(), $asJson);
    }