/** * Sets the preferred method to use for making HTTP calls. * * @param string $method Default is `auto` * * @return Response */ public static function setMethod($method = 'auto') { if (!in_array($method, ['auto', 'curl', 'fopen'])) { $method = 'auto'; } self::$method = $method; return new self(); }