NAME

Hypersonic::Protocol::HTTP2 - JIT code generation for HTTP/2 protocol

SYNOPSIS

use Hypersonic::Protocol::HTTP2;

# Check if nghttp2 is available
if (Hypersonic::Protocol::HTTP2->check_nghttp2()) {
    my $cflags = Hypersonic::Protocol::HTTP2->get_extra_cflags();
    my $ldflags = Hypersonic::Protocol::HTTP2->get_extra_ldflags();
}

# Generate HTTP/2 C code
Hypersonic::Protocol::HTTP2->gen_includes($builder);
Hypersonic::Protocol::HTTP2->gen_callbacks($builder);

DESCRIPTION

This module provides JIT compile-time code generation for HTTP/2 protocol support using the nghttp2 library. All methods generate C code using XS::JIT::Builder - there is zero runtime overhead.

HTTP/2 Features

  • Binary framing via nghttp2

  • HPACK header compression

  • Stream multiplexing

  • Server push (future)

AUTHOR

Hypersonic Contributors