Creates a fetch function that includes base RequestInit options. This ensures requests inherit settings like credentials, mode, headers, etc. from the base init.
RequestInit
The base fetch function to wrap (defaults to global fetch)
fetch
Optional
The base RequestInit to merge with each request
A wrapped fetch function that merges base options with call-specific options
Creates a fetch function that includes base
RequestInitoptions. This ensures requests inherit settings like credentials, mode, headers, etc. from the base init.