21 Apr 2014 20:43:57 UTC
- Distribution: HTTP-Thin
- Module version: 0.006
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (8490 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: perl_5
- Activity24 month
- Download (11.29KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userPERIGRIN Chris Pratherand 2 contributors
- Aran Deltac
- Tatsuhiko Miyagawa
HTTP::Thin - A Thin Wrapper around HTTP::Tiny to play nice with HTTP::Message
use 5.12.1; use HTTP::Request::Common; use HTTP::Thin; say HTTP::Thin->new()->request(GET 'http://example.com')->as_string;
WARNING: This module is untested beyond the very basics. The implementation is simple enough that it shouldn't do evil things but, yeah it's still not approved for use by small children.
HTTP::Thinis a thin wrapper around HTTP::Tiny adding the ability to pass in HTTP::Request objects and get back HTTP::Response objects. The maintainers of HTTP::Tiny, justifiably, don't want to have to maintain compatibility but many other projects already consume the HTTP::Message objects. This is just glue code doing what it does best.
The return value is an HTTP::Response object.
A conversation on IRC lead to
ether, and I agreeing that this would be a useful module but probably not worth the effort. I wrote it anyway to get it out of my head.
Chris Prather <email@example.com>
This software is copyright (c) 2013 by Chris Prather.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Aran Deltac <firstname.lastname@example.org>
Tatsuhiko Miyagawa <email@example.com>