public function resize(?string $id, int $height, int $width)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/resize?'.http_build_query(compact(
            'height', 'width'
        ));

        return self::$curl->post($url);
    }
public function resize(?string $id, int $height, int $width)
    {
        $url = self::$base_url.'/'.($id ?? $this->container_id).'/resize?'.http_build_query(compact(
            'height', 'width'
        ));

        return self::$curl->post($url);
    }
public function resize ( ? string $ id , int $ height , int $ width ) { $ url = self :: $ base_url . '/' . ( $ id ?? $ this -> container_id ) . '/resize?' . http_build_query ( compact ( 'height' , 'width' ) ) ; return self :: $ curl -> post ( $ url ) ; }
Resize a container TTY.

Resize the TTY for a container. You must restart the container for the resize to take effect.

@param string|null $id
@param int         $height Height of the tty session in characters
@param int         $width  Width of the tty session in characters

@return mixed 200

@throws Exception
Resize a container TTY .