Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 20, 2025. It is now read-only.
This repository was archived by the owner on Jul 20, 2025. It is now read-only.

request headers support for both plain object and Request Headers instance #12

@sateeshkodati

Description

@sateeshkodati

I have a nodejs Apollo gateway app which uses node-fetch. I am trying use got-fetch but got-fetch doesn't support reqeust.headers instance of Headers https://github.com/node-fetch/node-fetch/blob/master/%40types/index.d.ts#L25-L54

it will be great to have support for both plain object and Symbol.iterator map in createFetch https://github.com/alexghr/got-fetch/blob/master/src/lib/fetch.ts#L64-L69

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions