protected function filterResponse($request, $type="text/*", $callback)
	{
		$response = $this->controller->execute($request);
		$array = call_user_func_array($callback, array(
			$response->getStatus(),
			$response->getHeaders(),
			$response->getBody()
			));

		return new Http\Response($array[0], $array[1], $array[2]);
	}