Phprest\Response\Created::__construct PHP Method

__construct() public method

public __construct ( string $location, mixed $content = '', array $headers = [] )
$location string The value of the Location header
$content mixed The response content, see setContent()
$headers array An array of response headers
    public function __construct($location, $content = '', $headers = [])
    {
        parent::__construct($content, Response::HTTP_CREATED, $headers);
        $this->headers->set('Location', $location);
    }