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::RESPONSE (3)

.ds Aq ’

NAME

HTTP::Engine::Response - HTTP response object

CONTENTS

SYNOPSIS



    sub handle_request {
        my $req = shift;
        my $res = HTTP::Engine::Response->new;
        $res->body(foo);
        return $res;
    }



ATTRIBUTES

body Sets or returns the output (text or binary data). If you are returning a large body, you might want to use a IO::FileHandle type of object (Something that implements the read method in the same fashion), or a filehandle GLOB. HTTP::Engine will write it piece by piece into the response.
cookies Returns a reference to a hash containing cookies to be set. The keys of the hash are the cookies’ names, and their corresponding values are hash references used to construct a CGI::Cookie object.



        $res->cookies->{foo} = { value => 123 };



The keys of the hash reference on the right correspond to the CGI::Cookie parameters of the same name, except they are used without a leading dash. Possible parameters are:

status Sets or returns the HTTP status.



    $res->status(404);



headers Returns an HTTP::Headers object, which can be used to set headers.



    $res->headers->header( X-HTTP-Engine => $HTTP::Engine::VERSION );



set_http_response set a HTTP::Response into $self.

AUTHORS

Kazuhiro Osawa and HTTP::Engine Authors.

THANKS TO

Catalyst::Response

SEE ALSO

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


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

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