Open homersimpsons opened 1 year ago
This library seem to be almost the only drop-in replacement for fetch with support for ssl pinning.
fetch
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
Request
How hard would it be to convert it to the same layout ?
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 forfetch
.The current signature is:
While the normal
fetch
can receive aRequest
object as first parameter: https://developer.mozilla.org/en-US/docs/Web/API/fetchHow hard would it be to convert it to the same layout ?