Creates a reusable HTTP request function with predefined options.

const fetcher = FetchFactory<RequestType, ResponseType>({
method: 'POST',
caller: fetch,
headers: { 'Content-Type': 'application/json' }
});

const response = await fetcher('/api/endpoint', data);