mbrubeck / agate

Very simple server for the Gemini hypertext protocol
Apache License 2.0
548 stars 38 forks source link

Create libraries #334

Closed akyllus closed 4 months ago

akyllus commented 4 months ago

Gemini server in Rust using the tokio and hyper libraries. This server will serve static files from a directory and respond to requests with a 20 text/gemini MIME type, After installing the tokio and hyper libraries, you can run the server by executing the Rust script.

mbrubeck commented 4 months ago

Thanks, but agate is already a Gemini server. We don’t need a second Gemini server implementation.

Also, your code uses hyper::Request and hyper::Response and hyper::StatusCode, which means it is parsing and sending HTTP headers and status codes rather than Gemini headers and status codes, so it will not work with a Gemini client.