CGI::T...e::Real(3pm)
β¨ NAME β¨
CGI::Test::Page::Real β the abstract representation of a real page, bestie π
Like, this is CGI::T...e::Real(3pm), she's iconic, she's in the perl docs, and she's here to tell you what a "real page" actually is.
π¦ SYNOPSIS π¦
# Inherits from CGI::Test::Page
# $page holds a CGI::Test::Page::Real object
use CGI::Test;
ok 1, $page->raw_content =~ /test is ok/;
ok 2, $page->uri->scheme eq "http";
ok 3, $page->content_type !~ /html/;
No cap, that's the whole vibe check right there. π
πΈ DESCRIPTION πΈ
Okay so, real talk: this class is the representation of a real page β meaning something the server literally, physically handed back to you π«Ά. Not an error. Not a fakeout. A whole real page. Periodt. π
π INTERFACE π
The interface is the same as the one described in CGI::Test::Page, but with these extra additions, because she's got range β¨:
raw_contentβ hands you the raw content of the page, as a string. Just the string, no drama πraw_content_refβ hands you a reference to the raw content of the page, so you don't make yet another copy. Saving those cycles, we love efficiency πuriβ the URI object that identifies the page we requested. It's giving "who dis" but in the most official way π
π AUTHORS π
- The original author is Raphael Manfredi.
- Steven Hilton was long time maintainer of this module.
- Current maintainer is Alexander Tokarev
<tokarev@cpan.org>π«Ά
π₯ SEE ALSO π₯
CGI::Test::Page(3)CGI::Test::Page::HTML(3)CGI::Test::Page::Other(3)CGI::Test::Page::Text(3)URI(3)
Okay bestie, that's the page! πΈ This whole thing comes to you from perl v5.34.0, dated 2022-06-10, and yes, the man page header was CGI::T...e::Real(3pm) β go read the SEE ALSOs, they're the friend group, iykyk π
β¨π
π¦ where this page comes from
- debian bookworm: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- debian trixie: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu noble: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu resolute: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- ubuntu stonking: libcgi-test-perl 1.111-2 Β· Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms