Hub::Webapp::Response - Response functions


hub-standard documentation  | view source Contained in the hub-standard distribution.

Index


NAME

Top

Hub::Webapp::Response - Response functions

SYNOPSIS

Top



  use Hub qw(:standard :webapp);
  callback(&main);
  sub main {
    respond("index.html");
  }







DESCRIPTION

Top

This class provides one method 'respond' which populates the response template with values from the registry.

PUBLIC METHODS

Top

respond

INTERNAL METHODS

Top

_get_content_headers

Standard HTTP headers by file extension


 Usage: _get_content_headers $ext
Return an array of headers ($content_encoding, $content_type, [other..])




AUTHOR

Top

Ryan Gies (ryangies@livesite.net)

COPYRIGHT

Top

UPDATED

Top

08/02/2007


hub-standard documentation  | view source Contained in the hub-standard distribution.