src/HttpClientRouter.php
private function chooseHttpClient(RequestInterface $request)
    {
        foreach ($this->clients as $client) {
            if ($client['matcher']->matches($request)) {
                return $client['client'];
            }
        }

        throw new HttpClientNoMatchException('No client found for the specified request', $request);
    }
private function chooseHttpClient(RequestInterface $request)
    {
        foreach ($this->clients as $client) {
            if ($client['matcher']->matches($request)) {
                return $client['client'];
            }
        }

        throw new HttpClientNoMatchException('No client found for the specified request', $request);
    }
private function chooseHttpClient ( RequestInterface $ request ) { foreach ( $ this -> clients as $ client ) { if ( $ client [ 'matcher' ] -> matches ( $ request ) ) { return $ client [ 'client' ] ; } } throw new HttpClientNoMatchException ( 'No client found for the specified request' , $ request ) ; }
Choose an HTTP client given a specific request.

@return ClientInterface|HttpAsyncClient
Choose an HTTP client given a specific request .