Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface is not the same as browser's fetch #186

Open
homersimpsons opened this issue May 17, 2023 · 0 comments
Open

Interface is not the same as browser's fetch #186

homersimpsons opened this issue May 17, 2023 · 0 comments

Comments

@homersimpsons
Copy link

This library seem to be almost the only drop-in replacement for fetch with support for ssl pinning.

It does not follow exactly the normal fetch function and thus is not exactly a drop-in replacement for fetch.

The current signature is:

function fetch(url: string, options: ReactNativeSSLPinning.Options): Promise<ReactNativeSSLPinning.Response>

While the normal fetch can receive a Request object as first parameter: https://developer.mozilla.org/en-US/docs/Web/API/fetch

How hard would it be to convert it to the same layout ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant