Query: padre::task::lwp
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Padre::Task::LWP(3pm) User Contributed Perl Documentation Padre::Task::LWP(3pm)NAMEPadre::Task::LWP - Generic HTTP client background processing taskSYNOPSIS# Fire and forget HTTP request Padre::Task::LWP->new( request => HTTP::Request->new( GET => 'http://perlide.org', ), )->schedule;DESCRIPTIONSending and receiving data via HTTP.METHODSnew my $task = Padre::Task::LWP->new( method => 'GET', url => 'http://perlide.org', ); The "new" constructor creates a Padre::Task for a background HTTP request. It takes a single addition parameter "request" which is a fully-prepared HTTP::Request object for the request. Returns a new Padre::Task::LWP object, or throws an exception on error. request The "request" method returns the HTTP::Request object that was provided to the constructor. response Before the "run" method has been fired the "response" method returns "undef". After the "run" method has been fired the "response" method returns the HTTP::Response object for the LWP::UserAgent request. Typically, you would use this in the "finish" method for the task, if you wish to take any further actions in Padre based on the result of the HTTP call.SEE ALSOThis class inherits from "Padre::Task" and its instances can be scheduled using "Padre::TaskManager". The transfer of the objects to and from the worker threads is implemented with Storable.AUTHORSteffen Mueller "smueller@cpan.org"COPYRIGHT AND LICENSECopyright 2008-2012 The Padre development team as listed in Padre.pm. This program is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself. perl v5.14.2 2012-06-27 Padre::Task::LWP(3pm)
Related Man Pages |
---|
padre::help(3pm) - debian |
padre::ppi::updatecopyright(3pm) - debian |
padre::task::eval(3pm) - debian |
padre::task::file(3pm) - debian |
padre::task::lexicalreplacevariable(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
How Do I Set a Task to Happen in the Future? |
HTTP request |
Help with reading file with values and updating another file |
wildcard in sed substitution |
Reminder for burak171: Homework Violation |