public function getResponse()
{
$headers = $this->getHeaders();
if ($this->parser->mode == 'count') {
return Response::json($headers, 200, $headers);
} else {
if ($this->parser->envelope) {
return Response::json(['meta' => $headers, 'data' => $this->getResult()], 200);
} else {
return Response::json($this->getResult(), 200, $headers);
}
}
}