Net::G...:Server(3pm)

πŸ“¦ version 0.11, in alpine 3.24

πŸ’– Net::G...:Server(3pm) β€” User Contributed Perl Documentation πŸ’–

okay so welcome to the Net::G...:Server(3pm) page, bestie. This is the User Contributed Perl Documentation vibe, and we're about to get into a test gemini server. Stay with me, it's gonna be cute and useful. 🫢


🌸 NAME 🌸

Net::Gemini::Server β€” test gemini server. That's the whole name, no cap. πŸ’…


✨ SYNOPSIS ✨

Here's the "how do I even use this" moment, literally:

use Net::Gemini::Server;
my $server = Net::Gemini::Server->new(
  listen => {
    LocalAddr => '127.0.0.1',
    LocalPort => 0,
  },
  context => {
    SSL_cert_file => ...,
    SSL_key_file  => ...,
  }
);
$server->withforks(
  sub {
      my ( $client, $size, $request) = @_;
      ...
      close $client;
  }
);

Periodt. The ... bits are placeholders, so don't come for me. πŸ™ˆ


πŸ’œ DESCRIPTION πŸ’œ

So this module provides a simple test server for Net::Gemini; see the test code for that module. That's the tea. It's giving "small helper module with main character energy." ✨


πŸ¦‹ METHODS πŸ¦‹

okay, method time, stay close:

  • new param β€” constructor, bestie. The param should include listen and context key values to configure the listen object and SSL context object. 🌈
  • context =item port =item socket β€” yes, the accessor line is literally printed like that, =items and all. These accessors return the context object (see IO::Socket::SSL), listen port, and socket of the server. πŸ’–
  • withforks callback β€” accepts connections and forks child processes to handle the client request with the given callback. The callback is passed the client socket, size of the request, and the request string. πŸŽ€

πŸ’€ BUGS πŸ’€

None known.

But it is a rather incomplete module; that may be considered a bug? iykyk 😭

πŸ”₯ SEE ALSO πŸ”₯

  • <gemini://gemini.circumlunar.space/docs/specification.gmi> (v0.16.1)
  • RFC 3986

Copyright 2022 Jeremy Mates

This program is distributed under the (Revised) BSD License: <https://opensource.org/licenses/BSD-3-Clause>

slay. πŸ’œ


And that's the vibe check, bestie. This little page is from perl v5.42.2, dated 2026-02-15, under the manual name Net::G...:Server(3pm). πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from