Skip to content

Allow skipping normalizing of request path into a URL #1343

@fiadliel

Description

@fiadliel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions