Changeset 8021 for lang/perl/App-MadEye

Show
Ignore:
Timestamp:
03/17/08 12:36:44 (9 months ago)
Author:
tokuhirom
Message:

Plugin::Agent::HTTP: added docs. added schema. change default ua.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/App-MadEye/trunk/lib/App/MadEye/Plugin/Agent/HTTP.pm

    r7530 r8021  
    1212    my $ua = LWP::UserAgent->new( 
    1313        timeout => $TIMEOUT, 
    14         agent   => $self->config->{config}->{user_agent} || 'App::MadEye', 
     14        agent   => $self->config->{config}->{user_agent} || "App::MadEye($App::MadEye::VERSION)", 
    1515    ); 
    1616    my $res = $ua->get($url); 
     
    2424 
    25251; 
     26__END__ 
    2627 
     28=head1 NAME 
     29 
     30App::MadEye::Plugin::Agent::HTTP - check http. 
     31 
     32=head1 SCHEMA 
     33 
     34    type: map 
     35    mapping: 
     36        target: 
     37            type: seq 
     38            required: yes 
     39            sequence: 
     40                - type: str 
     41        timeout: 
     42            required: yes 
     43            type: int 
     44        user_agent: 
     45            required: no 
     46            type: str 
     47 
     48=head1 AUTHOR 
     49 
     50Tokuhiro Matsuno 
     51 
     52=head1 SEE ALSO 
     53 
     54L<App::MadEye>, L<Gearman::Client>, L<Gearman::Worker> 
     55