NAME
Dancer2::Plugin::PageHistory::Page - Page object for Dancer2::Plugin::PageHistory
ATTRIBUTES
attributes
Extra attributes as a hash reference, e.g.: SKU for a product page.
path
Absolute path of the page. This is the path as seen by the Dancer2 application so if the app is not mounted on '/' then this will be different from "request_path".
If not passed in the constructor will be set from "request".
request
The Dancer2::Core::Request object. Optional.
request_path
The original request path but without the query string.
If this was not supplied to the constructor then what this returns varies:
If "request" was supplied then this is used to determine the appropriate path to return.
Otherwise "path" is returned.
query_string
The original query string.
title
Page title.
METHODS
BUILDARGS
Checks that at least one of 'request' and 'path' have been supplied or croaks.
predicates
The following predicate methods are defined:
has_attributes
has_title
uri
Returns the string URI for "path" and "query_string".
request_uri
Returns the string URI for "request_path" and "query_string".