In my first use of the URL builder, I wanted to create a URL within a site and add a query string. I don't care about the scheme or host.
e.g. I wanted to do something like this:
<div hx-ext="sse" sse-connect={ urlbuilder.Path("/chat/response").Query("input", text) } sse-swap="message">
However, the API forces you to have a scheme and host.
Maybe the API should have something like urlbuilder.Path, urlbuilder.Scheme etc. which returns a builder? Not sure, but the ergonomics didn't quite work out.
@garrettladley - ideas?
In my first use of the URL builder, I wanted to create a URL within a site and add a query string. I don't care about the scheme or host.
e.g. I wanted to do something like this:
However, the API forces you to have a scheme and host.
Maybe the API should have something like
urlbuilder.Path,urlbuilder.Schemeetc. which returns a builder? Not sure, but the ergonomics didn't quite work out.@garrettladley - ideas?