You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AddHost plugin should take care of the base path
With the following PHP code example:
```php
$httpClient = new HttpMethodsClient(
new PluginClient(HttpClientDiscovery::find(), [
new AddHostPlugin(UriFactoryDiscovery::find()->createUri('https://logs.domain.com/api')),
new ErrorPlugin(),
]),
MessageFactoryDiscovery::find()
);
$httpClient->get('/users');
```
The https://logs.domain.com/users URL will be called instead of /api/users.
The base path should be kept on this plugin.
0 commit comments