Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gemini protocol support #160

Open
rawnix-org opened this issue Sep 18, 2021 · 1 comment
Open

add gemini protocol support #160

rawnix-org opened this issue Sep 18, 2021 · 1 comment
Assignees

Comments

@rawnix-org
Copy link

Add support for twtxt files on gemini space. (gemini://)

Shouldn't be too complicated to add.

@buckket buckket self-assigned this Sep 18, 2021
@zzo38
Copy link

zzo38 commented Jul 6, 2022

I agree. The implementation would be as follows:

  • Find the domain name in the URL, and connect to it on port 1965, using TLS, and enable SNI. (Everything following is encrypted)

  • Transmit the entire URL (including gemini:// and the domain name) followed by a carriage return and line feed.

  • The first line of the response is the status line; the first character of that line is a digit indicating the status (where 2 means OK). The rest of the lines after the first line is the contents of the requested file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants