NAME
Alien::nghttp2 - Find or build the nghttp2 HTTP/2 C library
SYNOPSIS
use Alien::nghttp2;
use ExtUtils::MakeMaker;
WriteMakefile(
...
CONFIGURE_REQUIRES => {
'Alien::nghttp2' => '0',
},
LIBS => [ Alien::nghttp2->libs ],
CCFLAGS => Alien::nghttp2->cflags,
);
Or with Alien::Build::MM:
use Alien::Build::MM;
my $abmm = Alien::Build::MM->new;
WriteMakefile($abmm->mm_args(
...
BUILD_REQUIRES => {
'Alien::nghttp2' => '0',
},
));
DESCRIPTION
This Alien module provides the nghttp2 HTTP/2 C library. It will either detect the library installed on your system, or download and build it from source.
nghttp2 is an implementation of the HTTP/2 protocol (RFC 9113) and HPACK header compression (RFC 7541), used by curl, Apache httpd, Firefox, and many other projects.
METHODS
All methods are inherited from Alien::Base:
cflags
my $cflags = Alien::nghttp2->cflags;
Returns compiler flags needed to compile against nghttp2.
libs
my $libs = Alien::nghttp2->libs;
Returns linker flags needed to link against nghttp2.
dynamic_libs
my @libs = Alien::nghttp2->dynamic_libs;
Returns list of dynamic library paths.
install_type
my $type = Alien::nghttp2->install_type;
Returns 'system' or 'share' depending on how nghttp2 was installed.
SEE ALSO
Alien::Base, Alien::Build, Net::HTTP2::nghttp2
https://nghttp2.org/ - nghttp2 project homepage
AUTHOR
Your Name <your@email.com>
LICENSE
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.