Type alias RequestRequestOptions

RequestRequestOptions: {
    fetch?: Fetch;
    parseSuccessResponseBody?: boolean;
    redirect?: "follow" | "error" | "manual";
    signal?: Signal;
    [option: string]: any;
}

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

Type declaration

  • [option: string]: any
  • Optional fetch?: Fetch

    Custom replacement for built-in fetch method. Useful for testing or request hooks.

  • Optional parseSuccessResponseBody?: boolean

    If set to false, the response body will not be parsed and will be returned as a stream.

  • Optional redirect?: "follow" | "error" | "manual"
  • Optional signal?: Signal

    Use an AbortController instance to cancel a request. In node you can only cancel streamed requests.