Scroll to navigation

Web::MREST::Util(3pm) User Contributed Perl Documentation Web::MREST::Util(3pm)

NAME

Web::MREST::Util - Miscellaneous utilities

SYNOPSIS

Miscellaneous utilities

EXPORTS

This module provides the following exports:
$JSON (singleton)
"get_session" (function)
"pod_to_html" (function)
"pod_to_text" (function)

FUNCTIONS

pod_to_html

Every Web::MREST resource definition includes a 'documentation' property containing a POD string. Our 'docu/html' resource converts this POD string into HTML with a little help from this routine.

pod_to_text

Convert POD string into text

get_session

Given a Plack environment (hashref), returns session object. If there is no session object in the environment, it creates one.

Returns: nothing

2017-01-03 perl v5.24.1