Skip to content

Commit 2fc7576

Browse files
authored
feat: v11 (#561)
* remove timeout and agent from requestoptions because of the fetch breaking change BREAKING CHANGE: Replace support for Node.js http(s) Agents with documentation on using fetch dispatchers instead
1 parent 76f81e8 commit 2fc7576

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/RequestRequestOptions.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import type { Signal } from "./Signal";
55
* Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled
66
*/
77
export type RequestRequestOptions = {
8-
/**
9-
* Node only. Useful for custom proxy, certificate, or dns lookup.
10-
*
11-
* @see https://nodejs.org/api/http.html#http_class_http_agent
12-
*/
13-
agent?: unknown;
148
/**
159
* Custom replacement for built-in fetch method. Useful for testing or request hooks.
1610
*/
@@ -19,10 +13,6 @@ export type RequestRequestOptions = {
1913
* Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests.
2014
*/
2115
signal?: Signal;
22-
/**
23-
* Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead.
24-
*/
25-
timeout?: number;
2616

2717
[option: string]: any;
2818
};

0 commit comments

Comments
 (0)