deno.land / x / oauth4webapi@v1.2.2 / docs / interfaces / HttpRequestOptions.md

HttpRequestOptions.md

Interface: HttpRequestOptions

💗 Help the project

Table of contents

Properties

Properties

headers

• Optional headers: Headers

A Headers instance to additionally send with the HTTP Request(s) triggered by this function's invocation.


signal

• Optional signal: AbortSignal | () => AbortSignal

An AbortSignal instance, or a factory returning one, to abort the HTTP Request(s) triggered by this function's invocation.

example A 5000ms timeout AbortSignal for every request

const signal = () => AbortSignal.timeout(5_000) // Note: AbortSignal.timeout may not yet be available in all runtimes.
oauth4webapi

Version Info

Tagged at
2 years ago