public static function setMethod($method = 'auto')
    {
        if (!\in_array($method, ['auto', 'curl', 'fopen'], true)) {
            $method = 'auto';
        }

        self::$method = $method;

        return new self();
    }
public static function setMethod($method = 'auto')
    {
        if (!\in_array($method, ['auto', 'curl', 'fopen'], true)) {
            $method = 'auto';
        }

        self::$method = $method;

        return new self();
    }
public static function setMethod ( $ method = 'auto' ) { if ( ! \ in_array ( $ method , [ 'auto' , 'curl' , 'fopen' ] , true ) ) { $ method = 'auto' ; } self :: $ method = $ method ; return new self ( ) ; }
Sets the preferred method to use for making HTTP calls.

@param string $method Default is `auto`

@return Response
Sets the preferred method to use for making HTTP calls .