ePages 6.10 - DE_EPAGES/WebInterface/API/Object/WebAdapterShared.pm

Package DE_EPAGES::WebInterface::API::Object::WebAdapterShared

send response to webadapter

Functions

receive
send

receive

Receives all HTTP headers that are sent from the web adapter from the client socket. Exports the known key value pairs to the environment in order to emulate a CGI environment via serverVariables. This function will also be called if the connection from a WA was closed, so we cannot simply die on an error - we have to return undef instead to give the caller the chance to handle this case.

Syntax
($Request, $hServerVariables) = $WebAdapter->receive();
Return
$Request (HTTP::Request)
received request from web adapter
$hServerVariables (ref.hash)
CGI variables provided by the web server

send

Sends the content of the buffered output data to the client socket. the Application server sets the Socket File Descriptor via setSockedFD before.

Syntax
$WebAdapter->send( $Response );
Input
$Response (HTTP::Response)
send this response to webadapter