From ce98d51253ee6e4bfb0beb62f104dc2ca2253e69 Mon Sep 17 00:00:00 2001 From: Sean Kelly Date: Thu, 26 Jan 2023 20:29:32 -0800 Subject: [PATCH] Update DispatchOptions type --- types/dispatcher.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/dispatcher.d.ts b/types/dispatcher.d.ts index 05a2ab5e76e..5ad330a8be6 100644 --- a/types/dispatcher.d.ts +++ b/types/dispatcher.d.ts @@ -105,6 +105,8 @@ declare namespace Dispatcher { query?: Record; /** Whether the requests can be safely retried or not. If `false` the request won't be sent until all preceding requests in the pipeline have completed. Default: `true` if `method` is `HEAD` or `GET`. */ idempotent?: boolean; + /** Whether the response is expected to take a long time and would end up blocking the pipeline. When this is set to `true` further pipelining will be avoided on the same connection until headers have been received. */ + blocking?: boolean; /** Upgrade the request. Should be used to specify the kind of upgrade i.e. `'Websocket'`. Default: `method === 'CONNECT' || null`. */ upgrade?: boolean | string | null; /** The amount of time the parser will wait to receive the complete HTTP headers. Defaults to 30 seconds. */