Skip to content

dancrumb/hpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HPACK

This is a Deno implementation of the HPACK algorithm, as defined in RFC-7541.

This is generally intended to be used by HTTP/2 implementations, but can be used standalone.

const encodingContext = new EncodingContext();
const decodingContext = new DecodingContext();

const encodingStream = () => new HPackEncoderStream(encodingContext);
const decodingStream = () => new HPackDecoderStream(decodingContext);

await readableStreamFromIterable(`
:status: 302
cache-control: private
date: Mon, 21 Oct 2013 20:13:21 GMT
location: https://www.example.com`)
  .pipeThrough(encodingStream())
  .pipeThrough(decodingStream());

About

Deno implementation of the HPACK algorithm

Resources

License

Stars

Watchers

Forks

Packages

No packages published