cloudflare
Version:
The official TypeScript library for the Cloudflare API
24 lines • 949 B
JavaScript
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from 'cloudflare/resource';
export class ProxyReadTimeoutResource extends APIResource {
/**
* Maximum time between two read operations from origin.
*/
edit(params, options) {
const { zone_id, ...body } = params;
return this._client.patch(`/zones/${zone_id}/settings/proxy_read_timeout`, {
body,
...options,
})._thenUnwrap((obj) => obj.result);
}
/**
* Maximum time between two read operations from origin.
*/
get(params, options) {
const { zone_id } = params;
return this._client.get(`/zones/${zone_id}/settings/proxy_read_timeout`, options)._thenUnwrap((obj) => obj.result);
}
}
(function (ProxyReadTimeoutResource) {
})(ProxyReadTimeoutResource || (ProxyReadTimeoutResource = {}));
//# sourceMappingURL=proxy-read-timeout.mjs.map