-
Notifications
You must be signed in to change notification settings - Fork 310
Description
Perceived Problem
I would like to be able to use the fetch
from SvelteKit with graffle. Amongst the differences with stock fetch, is the ability to accept a relative path, and "do the right thing" on the client or server.
I can call the custom fetch in an anywhere hook, but by this point any configured path is converted (or an attempt is made) into a URL; this does not work with relative paths. I could try to create a dummy URL and ignore it, but trying to duplicate a Request object opens up a number of issues.
Ideas / Proposed Solution(s)
One idea is to allow either URL | string
all through the system, and just pass directly when creating a Request
. Alternatively, maybe modify the Http transport to allow this to be built as a custom transport, without having to copy the whole implementation.