WICG / compression-dictionary-transport

Other
92 stars 8 forks source link

Path parsing #26

Closed annevk closed 3 months ago

annevk commented 1 year ago

Is this defined somewhere?

pmeenan commented 1 year ago

Not yet (well, at least not well). I'll add a section on paths specifically to include the expansion of relative paths, wildcard matching and longest-match preference.

The path expansion of relative URLs will be based on RFC 1808 but will not allow for scheme or network location and are forced to be same-origin with only the path (and later) parts of the URL settable.

annevk commented 1 year ago

Any reason to not align it with URLs?

pmeenan commented 1 year ago

Ahh, sorry, I was looking at the W3 spec for relative URLs which also defers to RFC 1808 instead of the newer whatwg URL spec.

We could probably support the full URL spec rules for the parsing and just have a same-origin requirement on the resulting URL but the scheme and host parts would be superfluous.

pmeenan commented 3 months ago

Closing this out as we have adopted URLPattern for the path matching.