src/HttpClientRouter.php
public function addClient($client, RequestMatcher $requestMatcher): void
    {
        $this->clients[] = [
            'matcher' => $requestMatcher,
            'client' => new FlexibleHttpClient($client),
        ];
    }
public function addClient($client, RequestMatcher $requestMatcher): void
    {
        $this->clients[] = [
            'matcher' => $requestMatcher,
            'client' => new FlexibleHttpClient($client),
        ];
    }
public function addClient ( $ client , RequestMatcher $ requestMatcher ) : void { $ this -> clients [ ] = [ 'matcher' => $ requestMatcher , 'client' => new FlexibleHttpClient ( $ client ) , ] ; }
Add a client to the router.

@param ClientInterface|HttpAsyncClient $client
Add a client to the router .