OpenFrame::Response man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

OpenFrame::Response(3)User Contributed Perl DocumentatioOpenFrame::Response(3)

NAME
       OpenFrame::Response - An abstract response class

SYNOPSIS
	 use OpenFrame;
	 use OpenFrame::Constants;
	 my $r = OpenFrame::Response->new();
	 $r->message("<html><body>Hello world!</body></html>");
	 $r->mimetype('text/html');
	 $r->code(ofOK);
	 $r->cookies(OpenFrame::Cookies->new());

DESCRIPTION
       "OpenFrame::Response" represents responses inside OpenFrame. Responses
       represent some kind of response following a request for information.

       This module abstracts the way clients can respond with data from
       OpenFrame.

METHODS
   new()
       This method creates a new "OpenFrame::Response" object. It takes no
       parameters.

   cookies()
       This method gets and sets the "OpenFrame::Cookietin" that is associated
       with this response.

	 my $cookietin = $r->cookies();
	 $r->cookies(OpenFrame::Cookies->new());

   message()
       This method gets and sets the message string associated with this
       response.  A scalar reference can be stored. It will always be returned
       as a scalar.

	 my $message = $r->message();
	 $r->message("<html><body>Hello world!</body></html>");

   code()
       This method gets and sets the message code associated with this
       response. The following message codes are exported when you use
       "OpenFrame::Constants": ofOK, ofERROR, ofREDIRECT, ofDECLINE.

	 my $code = $r->code();
	 $r->code(ofOK);

   mimetype()
       This method gets and sets the MIME type associated with this response.

	 my $type = $r->mimetype();
	 $r->mimetype('text/html');

AUTHOR
       James Duncan <jduncan@fotango.com>

perl v5.14.1			  2004-08-05		OpenFrame::Response(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net