|
NAMEXML::Compile::SOAP::Daemon::LWPutil - LWP helper routinesINHERITANCEXML::Compile::SOAP::Daemon::LWPutil is a Exporter SYNOPSIS# used by ::Daemon::NetServer # and ::Daemon::AnyDaemon DESCRIPTIONFUNCTIONS
DETAILSPostprocessing responsesThe "LWP" based daemons provide a "postprocess" option to their "run()" methods. The parameter is a CODE reference.When defined, the CODE is called when the response message is ready to be returned to the client: $code->($request, $response, $status, \$body) The source $requests is passed as first parameter. The $response is an HTTP::Response object, with all headers but without the body. The $status is the result code of the handler. A value of 200 ("HTTP_OK" from "HTTP::Status") indicates successful processing of the request. When the status is not HTTP_OK you may skip the postprocessing. The $body are the bytes which will be added as body to the response after this postprocessing has been done. You may change the body. Be warned that the body is not a (latin1 or utf-8) string but already encoded into a byte string. SEE ALSOThis module is part of XML-Compile-SOAP-Daemon distribution version 3.14, built on May 11, 2018. Website: http://perl.overmeer.net/CPAN/LICENSECopyrights 2007-2018 by [Mark Overmeer <markov@cpan.org>]. For other contributors see ChangeLog.This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
Visit the GSP FreeBSD Man Page Interface. |