src/Http/Response.php
public function withHeader($key, $value, $replace = true)
    {
        return $this->header($key, $value, $replace);
    }
public function withHeader($key, $value, $replace = true)
    {
        return $this->header($key, $value, $replace);
    }
public function withHeader ( $ key , $ value , $ replace = true ) { return $ this -> header ( $ key , $ value , $ replace ) ; }
Add a header to the response.

@param string $key
@param string $value
@param bool   $replace

@return \Dingo\Api\Http\Response
Add a header to the response .