in htmx 4 you are able to swap it on a per-trigger basis, so need to muck w/the global fetch function:
<button hx-get="/foo" hx-on:htmx:config:request="ctx.fetch = myCustomFetch">
Do It
</button>