HTTP::Tiny::SPDY - A subclass of HTTP::Tiny with SPDY support
version 0.013
use HTTP::Tiny::SPDY; my $response = HTTP::Tiny::SPDY->new->get('https://example.com/'); die "Failed!\n" unless $response->{success}; print "$response->{status} $response->{reason}\n"; while (my ($k, $v) = each %{$response->{headers}}) { for (ref $v eq 'ARRAY' ? @$v : $v) { print "$k: $_\n"; } } print $response->{content} if length $response->{content};
This is a subclass of HTTP::Tiny with added support for the SPDY protocol. It is intended to be fully compatible with HTTP::Tiny so that it can be used as a drop-in replacement for it.
$http = HTTP::Tiny::SPDY->new( %attributes );
Constructor that returns a new HTTP::Tiny::SPDY object. It accepts the same attributes as the constructor of HTTP::Tiny, and one additional attribute:
enable_SPDY
A boolean that indicates if a SPDY connection should be negotiated for HTTPS requests (default is true)
HTTP::Tiny
Net::SPDY
SPDY Project Homepage
SPDY protocol support is provided by Net::SPDY, written by Lubomir Rintel.
Please report any bugs or feature requests through the issue tracker at https://github.com/odyniec/p5-HTTP-Tiny-SPDY/issues. You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/odyniec/p5-HTTP-Tiny-SPDY
git clone https://github.com/odyniec/p5-HTTP-Tiny-SPDY.git
Michal Wojciechowski <odyniec@cpan.org>
This software is copyright (c) 2013 by Michal Wojciechowski.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTTP::Tiny::SPDY, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTTP::Tiny::SPDY
CPAN shell
perl -MCPAN -e shell install HTTP::Tiny::SPDY
For more information on module installation, please visit the detailed CPAN module installation guide.