C<Wx::Perl::FSHandler::LWP> - file system handler based upon LWP |
Wx::Perl::FSHandler::LWP
- file system handler based upon 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
.
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.
Called internally by Wx::FileSystem
. Calls is_protocol_supported
on the user agent to determine if the location can be opened.
Called internally by Wx::FileSystem
. Uses the user agent to fetch
the URL and returns a Wx::FSFile
representing the result.
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.
C<Wx::Perl::FSHandler::LWP> - file system handler based upon LWP |