Net::G...:Server(3pm)
π 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. Theparamshould includelistenandcontextkey 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 (seeIO::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 AND LICENSE π
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
- alpine 3.24: perl-net-gemini-doc 0.11-r1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms