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
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,16 @@ It's possible to use a custom cache by creating a child class of the [CacheInter
154
154
>>> $client = new IPinfo($access_token, $settings);
155
155
```
156
156
157
+
### Overriding HTTP Client options
158
+
159
+
The IPinfo client constructor accepts a `timeout` key which is the request
160
+
timeout in seconds.
161
+
162
+
For full flexibility, a `guzzle_opts` key is accepted which accepts an
163
+
associative array which is described in [Guzzle Request Options](https://docs.guzzlephp.org/en/stable/request-options.html).
164
+
Options set here will override any custom settings set by the IPinfo client
165
+
internally in case of conflict, including headers.
166
+
157
167
### Internationalization
158
168
159
169
When looking up an IP address, the response object includes a `Details->country_name` attribute which includes the country name based on American English. It is possible to return the country name in other languages by setting the `countries_file` keyword argument when creating the `IPinfo` object.
0 commit comments