CGI::Test::Page::Real(3pm)

CGI::Test::Page::Real3pm

Abstract representation of a real page

Usage

 # 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/;

Overview

This class is the representation of a real page, i.e. something physically returned by the server and which is not an error.

Interface

The interface is the same as the one described in CGI::Test::Page, with the following additions:

"raw_content"

Returns the raw content of the page, as a string.

"raw_content_ref"

Returns a reference to the raw content of the page, to avoid making yet another copy.

"uri"

The URI object, identifying the page we requested.

Releases

5 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9–10
  2. 11
  3. 12–13

Authors

The original author is Raphael Manfredi.

Steven Hilton was long time maintainer of this module.

Current maintainer is Alexander Tokarev <[email protected]>.

From libcgi-test-perl 1.111-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.