Skip to content

Commit

Permalink
feat: OpenAPI spec update via Stainless API (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Mar 5, 2024
1 parent 98ada90 commit 09fb773
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,18 +220,20 @@ If you would like to disable or customize this behavior, for example to use the
<!-- prettier-ignore -->
```ts
import http from 'http';
import HttpsProxyAgent from 'https-proxy-agent';
import { HttpsProxyAgent } from 'https-proxy-agent';

// Configure the default for all requests:
const cloudflare = new Cloudflare({
httpAgent: new HttpsProxyAgent(process.env.PROXY_URL),
});

// Override per-request:
await cloudflare.zones.delete({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' }, {
baseURL: 'http://localhost:8080/test-api',
httpAgent: new http.Agent({ keepAlive: false }),
})
await cloudflare.zones.delete(
{ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' },
{
httpAgent: new http.Agent({ keepAlive: false }),
},
);
```

## Semantic Versioning
Expand Down

0 comments on commit 09fb773

Please sign in to comment.