GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTTP::ENGINE::ROLE::INTERFACE (3)

.ds Aq ’

NAME

HTTP::Engine::Role::Interface - The Interface Role Definition

CONTENTS

SYNOPSIS



  package HTTP::Engine::Interface::CGI;
  use Any::Moose;
  with HTTP::Engine::Role::Interface;



DESCRIPTION

HTTP::Engine::Role::Interface defines the role of an interface in HTTP::Engine.

Specifically, an Interface in HTTP::Engine needs to do at least two things:
Create a HTTP::Engine::Request object from the client request If you are on a CGI environment, you need to receive all the data from %ENV and such. If you are running on a mod_perl process, you need to muck with $r.

In any case, you need to construct a valid HTTP::Engine::Request object so the application handler can do the real work.

Accept a HTTP::Engine::Response object, send it back to the client The application handler must return an HTTP::Engine::Response object.

In turn, the interface needs to do whatever necessary to present this object to the client. In a CGI environment, you would write to STDOUT. In mod_perl, you need to call the appropriate $r->headers methods and/or $r->print

AUTHORS

Kazuhiro Osawa and HTTP::Engine Authors

SEE ALSO

HTTP::Engine
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTTP::ENGINE::ROLE::INTERFACE (3) 2011-10-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.