A Gemini client API for Ruby

Net::Gemini provides a rich library which can be used to build Gemini user-agents. Net::Gemini is designed to work closely with URI.

the same documentation on Rubydoc (HTTPS)

ruby-net-text git repository (HTTPS)

ruby-net-text on Rubygems (HTTPS)

Simple Examples

All examples assume you have loaded Net::Gemini with:

This will also require 'uri' so you don't need to require it separately.

The Net::Gemini methods in the following sections do not persist connections.

GET by URI

GET with Dynamic Parameters

Response Data

The lang, charset and format headers will only be provided in case of `text/*` mimetype, and only if body for 2* status codes.

Following Redirection

The #fetch method, contrary to the #request one will try to automatically resolves redirection, leading you to the final destination.

--

๐Ÿ“…

๐Ÿ“ ร‰tienne Pflieger with GNU/Emacs 29.4 (Org mode 9.7.11)

๐Ÿก Back to home

๐Ÿš€ Propelled by fronde