diff --git a/src/httpTransport/client.ts b/src/httpTransport/client.ts index e3e09dd..939e43f 100644 --- a/src/httpTransport/client.ts +++ b/src/httpTransport/client.ts @@ -31,6 +31,7 @@ export class HttpTransportClient implements RestClient { const req = this.client.patch(uri, body); const res = await req .headers(_.get(opts, 'headers')) + .timeout(this.timeout) .query(_.get(opts, 'qs')) .asResponse(); @@ -111,6 +112,7 @@ export class HttpTransportClient implements RestClient { const req = this.client.head(uri); const res = await req .headers(_.get(opts, 'headers')) + .timeout(this.timeout) .query(_.get(opts, 'qs')) .asResponse(); @@ -128,6 +130,7 @@ export class HttpTransportClient implements RestClient { const req = this.client.delete(uri); const res = await req .headers(_.get(opts, 'headers')) + .timeout(this.timeout) .query(_.get(opts, 'qs')) .asResponse();