Skip to content

Fetch module typing and use of the Headers class #11

@OlliV

Description

@OlliV

This might be a good idea:
https://github.com/zeit/fetch/pull/43/files

export default function SetupFetch(
	fetchModule?: FetchModule,
	agentOptions?: http.AgentOptions | https.AgentOptions
): Fetch;

Currently we avoid the issue by using the Headers class as implemented by node-fetch which might, in theory, be different and incompatible in some other implementation.

However, let's ensure that we align with Fetch Standard whenever possible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions