Unirest\Request::connect PHP Method

connect() public static method

Send a CONNECT request to a URL
public static connect ( string $url, array $headers = [], mixed $parameters = null, string $username = null, string $password = null ) : unirest\Response
$url string URL to send the CONNECT request to
$headers array additional headers to send
$parameters mixed parameters to send in the querystring
$username string Basic Authentication username (deprecated)
$password string Basic Authentication password (deprecated)
return unirest\Response
    public static function connect($url, $headers = array(), $parameters = null, $username = null, $password = null)
    {
        return self::send(Method::CONNECT, $url, $parameters, $headers, $username, $password);
    }