Test::Override::UserAgent::Scope - Scoping the user agent overrides


Test-Override-UserAgent documentation  | view source Contained in the Test-Override-UserAgent distribution.

Index


NAME

Top

Test::Override::UserAgent::Scope - Scoping the user agent overrides

VERSION

Top

Version 0.004

SYNOPSIS

Top

  # $scope created by Test::Override::UserAgent

  # Say the class name the implements the given scheme
  say $scope->scheme_implementor($scheme);

DESCRIPTION

Top

This module is a used to specify a scope that LWP::UserAgent will be overridden with the specified configuration.

CONSTRUCTOR

Top

new

This will construct a new configuration object to allow for configuring user agent overrides.

new(%attributes)

%attributes is a HASH where the keys are attributes (specified in the ATTRIBUTES section).

new($attributes)

$attributes is a HASHREF where the keys are attributes (specified in the ATTRIBUTES section).

ATTRIBUTES

Top

override

This is a Test::Override::UserAgent object that specifies the configuration to use for this override.

METHODS

Top

scheme_implementor

This takes the name of a scheme and returns the name of the class that will implement LWP::Protocol for that scheme.

DEPENDENCIES

Top

* Carp (Carp)
* LWP::Protocol
* Scalar::Util
* Sub::Install 0.90
* Sub::Override
* namespace::clean 0.04

AUTHOR

Top

Douglas Christopher Wilson, <doug at somethingdoug.com>

BUGS AND LIMITATIONS

Top

Please report any bugs or feature requests to bug-test-override-useragent at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Override-UserAgent. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Top

You can find documentation for this module with the perldoc command.

  perldoc Test::Override::UserAgent::Scope

You can also look for information at:

* RT: CPAN's request tracker

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Override-UserAgent

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Test-Override-UserAgent

* CPAN Ratings

http://cpanratings.perl.org/d/Test-Override-UserAgent

* Search CPAN

http://search.cpan.org/dist/Test-Override-UserAgent/

LICENSE AND COPYRIGHT

Top


Test-Override-UserAgent documentation  | view source Contained in the Test-Override-UserAgent distribution.