NAME

Yukki::Web::Response - the response to the client

VERSION

version 0.110830

DESCRIPTION

An abstraction around the HTTP response that is astonishingly similar to Plack::Response. Call finalize to get the final PSGI response.

ATTRIBUTES

response

This is the internal Plack::Response object. Do not use.

Use the delegated methods instead:

status headers body header content_type content_length content_encoding
redirect location cookies finalize

page_title

This is the title to give the page in the HTML.

This is the navigation menu to place in the page. This is an array of hashes. Each entry should look like:

{
    label => 'Label',
    href  => '/link/to/somewhere',
    sort  => 50,
}

A sorted list of items is retrieved using navigation_menu. New items can be added with the add_navigation_item and add_navigation_items methods.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.