Skip to content

Commit

Permalink
add proxy section to readme (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
skarimo authored Sep 14, 2022
1 parent dbcda44 commit 72dbde0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,18 @@ If you want to enable requests logging, set the `debug` flag on your configurati
configuration.Debug = true
```

### Configure proxy

If you want to configure proxy, set env var `HTTP_PROXY`, and `HTTPS_PROXY"` or set custom
`HTTPClient` with proxy configured on configuration object:

```go
proxyUrl, _ := url.Parse("http://127.0.0.1:80")
configuration.HTTPClient = &http.Client{
Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}
}
```

### Pagination

Several listing operations have a pagination method to help consume all the items available.
Expand Down

0 comments on commit 72dbde0

Please sign in to comment.