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