Lines Matching refs:method
79 * @param string $method
84 public function __call($method, $args) argument
93 return substr($method, -5) === 'Async'
94 ? $this->requestAsync(substr($method, 0, -5), $uri, $opts)
95 : $this->request($method, $uri, $opts);
140 * @param string $method HTTP method
146 public function requestAsync($method, $uri = '', array $options = []) argument
158 $request = new Psr7\Request($method, $uri, $headers, $body, $version);
172 * @param string $method HTTP method.
179 public function request($method, $uri = '', array $options = []) argument
182 return $this->requestAsync($method, $uri, $options)->wait();