https://github.com/mons/http-easy
Parse and encode HTTP headers and cookies
https://github.com/mons/http-easy
Last synced: 8 months ago
JSON representation
Parse and encode HTTP headers and cookies
- Host: GitHub
- URL: https://github.com/mons/http-easy
- Owner: Mons
- Created: 2010-04-17T16:23:50.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T13:39:22.000Z (over 3 years ago)
- Last Synced: 2023-05-05T05:12:29.157Z (about 3 years ago)
- Language: Perl
- Homepage: http://search.cpan.org/dist/HTTP-Easy
- Size: 38.1 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
HTTP::Easy - Useful set for work with HTTP
SYNOPSIS
use HTTP::Easy::Headers;
my $h = "Connection: close\015\012".
"Expect: continue-100\015\012".
"Content-Type: text/html";
my $hash = HTTP::Easy::Headers->decode($h);
$hash->{connection}; # 'close'
$hash->{expect}; # 'continue-100'
$hash->{'content-type'}; # 'text/html'
my $hdr = HTTP::Easy::Headers->encode($hash);
use HTTP::Easy::Cookie;
my $cookie_jar = HTTP::Easy::Cookie->decode($hdr->{cookie});
$hdr->{cookie} = HTTP::Easy::Cookie->encode($cookie_jar, host => 'example.net', path => '/path' );
AUTHOR
Mons Anderson, ""
LICENSE AND COPYRIGHT
Copyright 2010-2013 Mons Anderson.
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.