Ash Berlin > Net-HTTP-Spore-0.06 > Net::HTTP::Spore::Middleware::Redirection

Download:
Net-HTTP-Spore-0.06.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Net::HTTP::Spore::Middleware::Redirection - Middleware for redirections

VERSION ^

version 0.06

SYNOPSIS ^

    my $client = Net::HTTP::Spore->new_from_spec('twitter.json');
    $client->enable( 'Redirection', max_redirect => 2 );

    # or
    $client->enable( 'Redirection');

DESCRIPTION ^

This middleware let you define how many redirection your client should follow. By default, a client won't follow redirections.

ATTRIBUTES

max_redirect

How many redirections the client should follow. Default is 5

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by linkfluence.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: