12-29-2001
4 More Discussions You Might Find Interesting
1. What is on Your Mind?
http://www.unix.com/images/snowman_greetings.gif
Seasons Greetings, Happy Holidays and Happy New Year!
As we get underway into the 2009 Holiday Season, all of us at The UNIX and Linux Forums would like to thank you for a great year.
We are fortunate to have a wonderful community... (0 Replies)
Discussion started by: Neo
0 Replies
2. What is on Your Mind?
Have a laugh...
https://www.youtube.com/watch?v=HZWQcl1C-c8
Bazza... (4 Replies)
Discussion started by: wisecracker
4 Replies
3. What is on Your Mind?
Hello All,
I wanted to wish Happy New Year 2016 to every one in this forum. May GOD gives us strength to do hard work, learn new things, enjoy each and every moment of our life, do new adventurous. Take care and enjoy. Here is a famous quote:
Thanks,
R. Singh
"GOD helps those Who help... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
4. What is on Your Mind?
Hello All,
I would like to wish A very Happy New Year 2020 to all. May GOD bless all of us with TRUE knowledge, wisdom, great attitude, honesty, hard working capability, great health :b:
Cheers and let us all have fun/learning/sharing/caring on this GREAT forum UNIX.com, love you UNIX.com... (1 Reply)
Discussion started by: RavinderSingh13
1 Replies
LEARN ABOUT DEBIAN
mojo::server::cgi
Mojo::Server::CGI(3pm) User Contributed Perl Documentation Mojo::Server::CGI(3pm)
NAME
Mojo::Server::CGI - CGI server
SYNOPSIS
use Mojo::Server::CGI;
my $cgi = Mojo::Server::CGI->new;
$cgi->unsubscribe('request')
$cgi->on(request => sub {
my ($cgi, $tx) = @_;
# Request
my $method = $tx->req->method;
my $path = $tx->req->url->path;
# Response
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body("$method request for $path!");
# Resume transaction
$tx->resume;
});
$cgi->run;
DESCRIPTION
Mojo::Server::CGI is a simple and portable implementation of RFC 3875.
See Mojolicious::Guides::Cookbook for more.
EVENTS
Mojo::Server::CGI inherits all events from Mojo::Server.
ATTRIBUTES
Mojo::Server::CGI inherits all attributes from Mojo::Server and implements the following new ones.
"nph"
my $nph = $cgi->nph;
$cgi = $cgi->nph(1);
Activate non parsed header mode.
METHODS
Mojo::Server::CGI inherits all methods from Mojo::Server and implements the following new ones.
"run"
$cgi->run;
Run CGI.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Server::CGI(3pm)