NAME
Unblock::HTTP3::Capsule - one RFC 9297 Capsule
SYNOPSIS
my $capsule = Unblock::HTTP3::Capsule->new(
type => 42,
value => $bytes,
);
my $wire = $capsule->encode;
DESCRIPTION
A Capsule is a numeric type and an opaque byte value as defined by RFC 9297.
Unblock::HTTP3 does not assign application meaning to Capsule Types. Higher-level protocols decide which types they use.
CONSTRUCTOR
new
my $capsule = Unblock::HTTP3::Capsule->new(
type => $type,
value => $bytes,
);
Creates one Capsule.
METHODS
type
Returns the numeric Capsule Type.
value
Returns the opaque Capsule Value bytes.
length
Returns the Capsule Value length in bytes.
encode
Returns the complete wire encoding for an HTTP data stream.
SEE ALSO
Unblock::HTTP3::Capsule::Parser, Unblock::HTTP3::Capsule::Stream, Unblock::HTTP3::Transaction
AUTHOR
Joshua S. Day
LICENSE
This software is available under the MIT License.