Skip to content

sludin/http2-perl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Version 0.03;

Notice: Work in progress and inapproprate for human consumption.

-------------------------

This is far from finished and I apologize for its lack of
completeness.  This will be rectified over time.  Hopefully
it is useful nonetheless.

UPDATE: HEADER COMPRESSION IS SIMPLY BROKEN.  It will work
in some cases, but far from all.

This is not a complete implemtation of Draft-04 of HTTP/2.0.  
The expecation is this will evolve in the near future to approach
completeness.  

This does not yet inclue a Makefile.pl.  It will.  Soon.
For now it will need to be installed by hand which is probably 
best for something in this state.  Look at the usage in 
http2client.pl and http2server.pl for examples.

--------------------------

INSTALLATION

To install this module, run the following commands:

	perl Makefile.PL
	make
	make test
	make install

--------------------------

This bundle provides a number of libraries intended to
provide the basic necessitied for an HTTP/2.0 implementation.
The modules currently are as follows.

HTTP2::Draft

Base module that provide a namespace and basic functinality

HTTP2::Draft::Log

Provides a wrapperl for Log::Log4perl;

HTTP2::Draft::Compress
HTTP2::Draft::HeaderIndex

Modules for the implementation of the header compression spec.

HTTP2::Draft::Stream
HTTP2::Draft::Connection
HTTP2::Draft::Frame

Connection, Frame, and stream implementation.  Most of the heavy 
lifting occurs in Connection.  Each Frame has a sub class in
Frame.pm

HTTP2::Draft::Server
HTTP2::Draft::Client

An attempt to wrap the above code in a moduel to make Server and
Client implementaions simple.

IO::Async::HTTP2::Framer
IO::Async::HTTP2::FramerStream

IO::Async moduels for reading and writing HTTP/2.0 frames on the
wire.  

--------------------------

Also included are two scripts that use Server.pm and Client.pm
to implements a client and server:

apps/http2client.pl
apps/http2server.pl

--------------------------

Example:

From the ./apps directory:

perl http2server.pl

Thsi defaults to useing port 8443.

perl http2client.pl http://127.0.0.1:8443

The client has a relatively rich set of command line options.
Use the -h option for details.


LICENSE AND COPYRIGHT

Copyright (C) 2013 Stephen Ludin

This program is free software; you can redistribute it and/or modify it
under the terms of the the Artistic License (2.0). You may obtain a
copy of the full license at:

L<http://www.perlfoundation.org/artistic_license_2_0>

Any use, modification, and distribution of the Standard or Modified
Versions is governed by this Artistic License. By using, modifying or
distributing the Package, you accept this license. Do not use, modify,
or distribute the Package, if you do not accept this license.

If your Modified Version has been derived from a Modified Version made
by someone other than you, you are nevertheless required to ensure that
your Modified Version complies with the requirements of this license.

This license does not grant you the right to use any trademark, service
mark, tradename, or logo of the Copyright Holder.

This license includes the non-exclusive, worldwide, free-of-charge
patent license to make, have made, use, offer to sell, sell, import and
otherwise transfer the Package with respect to any patent claims
licensable by the Copyright Holder that are necessarily infringed by the
Package. If you institute patent litigation (including a cross-claim or
counterclaim) against any party alleging that the Package constitutes
direct or contributory patent infringement, then this Artistic License
to you shall terminate on the date that such litigation is filed.

Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.






About

Perl implementation of the HTTP/2.0 protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages