Wx::Perl::FSHandler::LWP - file system handler based upon LWP
Wx::Perl::FSHandler::LWP
my $ua = LWP::UserAgent->new; # customize the User Agent, set proxy, supported protocols, ... my $handler = Wx::Perl::FSHandler::LWP->new( $ua ); Wx::FileSystem::AddHandler( $handler );
The Wx::Perl::FSHandler::LWP is a wxFileSystemHandler implementation based upon LWP::UserAgent, and is meant as a superior replacement for wxInternetFSHandler.
wxFileSystemHandler
LWP::UserAgent
wxInternetFSHandler
my $handler = Wx::Perl::FSHandler::LWP->new( $ua );
Creates a new instance. $ua must be an object of class LWP::UserAgent, which will be used to handle requests.
$ua
Called internally by Wx::FileSystem. Calls is_protocol_supported on the user agent to determine if the location can be opened.
Wx::FileSystem
is_protocol_supported
Called internally by Wx::FileSystem. Uses the user agent to fetch the URL and returns a Wx::FSFile representing the result.
Wx::FSFile
my $ua = $handler->user_agent;
Returns the LWP::UserAgent object used to handle requests.
See LWP::UserAgent.
Mattia Barbon <mbarbon@cpan.org>
Copyright (c) 2003, 2006 Mattia Barbon.
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
wxFileSystem and wxFileSystemHandler in wxPerl documentation.
To install Wx::Perl::FSHandler::LWP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wx::Perl::FSHandler::LWP
CPAN shell
perl -MCPAN -e shell install Wx::Perl::FSHandler::LWP
For more information on module installation, please visit the detailed CPAN module installation guide.