CGI::T...e::Real(3pm)

πŸ“¦
version 1.111 Β· 2 versions
  • 1.111 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.111 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ 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 πŸ”₯


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 πŸ’…βœ¨πŸ“