A question regarding section 1.2 of the spec

cbabcock at asciiking.com cbabcock at asciiking.com
Sun Nov 15 09:13:54 GMT 2020


New here, but that never stops me from jumping in...

November 15, 2020 1:34 AM, "Ali Fardan" <raiz at stellarbound.space> wrote:

> 1.2:
> 
>> The path, query and fragment components are allowed and have no
>> special meanings beyond those defined by the generic syntax.
> 
> We know that the query portion of URIs is reserved for response code 10
> and 11, but fragment is never used anywhere in the protocol.

Your use of "reserved" here probably reflects a misunderstanding. You can have a URI with a query indicator without getting a 1x response code first. The word "reserved" in the spec only ever refers to characters that must be escaped.

> So both query and fragment are dealt with absolutely differently in the
> protocol, but both are categorized under the same "allowed and have no
> special meanings", may I ask in what context do they have no special
> meanings? I'm confused a bit.

A URI is best thought of as an opaque identifier. If it happens to have semantic or functional purpose for the server that mechanisms can leverage to improve the reader experience, great, but it's just a way to identify the desired content for delivery. There's a feedback mechanism to refine a query, but no corresponding mechanism for fragments. If there was, it would be something like the anchor tag in HTML.

> Also, what does "defined by the generic syntax" refer to? what syntax?

The generic URI syntax as defined in RFC 3986.

Chris


More information about the Gemini mailing list