Lines Matching refs:client
196 $client = new HTTP\Client();
197 $response = $client->send($request);
202 The client emits 3 event using [`sabre/event`][5]. `beforeRequest`,
206 $client = new HTTP\Client();
207 $client->on('beforeRequest', function($request) {
214 $client->on('afterRequest', function($request, $response) {
221 $client->on('error', function($request, $response, &$retry, $retryCount) {
228 $client->on('error:401', function($request, $response, &$retry, $retryCount) {
259 $client = new Client();
263 $client->sendAsync(
275 $client->wait();
314 $client = new Client();
317 $response = $client->send($subRequest);
319 // Sends the response back to the client that connected to the proxy.