WarpEngineer / geminic

A Gemini protocol client library

Repository from Github https://github.comWarpEngineer/geminicRepository from Github https://github.comWarpEngineer/geminic

geminic

An Erlang library for building Gemini protocol clients.

Build

$ rebar3 compile

Retrieve a Gemini page without auto-redirect

1> geminic:request( "gemini://warpengineer.space" ).

Retrieve a Gemini page with auto-redirect

1> geminic:setopt(autoredirect, true).
2> geminic:request("gemini://warpengineer.space").

Retrieve a Gemini page with a custom timeout of 60 seconds (default is 30 seconds)

1> geminic:request( "gemini://warpengineer.space", 60000 ).

Use a client certificate

1> geminic:setopt(clientcert, geminic:make_cert("mycert.crt","mykey.key")).
2> geminic:request("gemini://warpengineer.space/restricted/index.gemini").

Author

License

Copyright (c) 2021 A. G. Madi. Licensed under MIT.

About

A Gemini protocol client library

License:MIT License


Languages

Language:Erlang 100.0%