[tech] default response?

Omar Polo op at omarpolo.com
Wed Dec 30 12:13:26 GMT 2020


Petite Abeille <petite.abeille at gmail.com> writes:

>> On Dec 30, 2020, at 12:48, Petite Abeille <petite.abeille at gmail.com> wrote:
>> 
>> So a minimal valid response would be:
>> 
>> 20 text/gemini
>
> Actually:
>
> 20 text
> <eof>
>
> No need for a subtype.

is it still valid?  Mind you, I am pretty ignorant regarding various
standards, but a quick look at RFC2045, section 5.1 "Syntax of the
Content-Type Header Field" seems to mark the subtype as required.

Also "grammar" in the wikipedia page[0] mark the subtype as required:
>type "/" [tree "."] subtype ["+" suffix] *[";" parameter]

I'm missing something?

> Would that be the minimal viable response?

To be fair, with the *current* specification

20\r\n
<eof>

is the minimal response allowed, since the spec still has the phrase:

> If <META> is an empty string, the MIME type MUST default to
> "text/gemini; charset=utf-8".  The text/gemini media type is defined
> in section 5.

but that's gonna be removed in a while (or at least is the impression I
got from the other thread).

I'm curios though, why are you trying to define the "smallest possible
response?"

[0]: https://en.wikipedia.org/wiki/Media_type


More information about the Gemini mailing list