http2-0.1.0: HTTP/2.0 library including HPACK

Safe HaskellNone

Network.HPACK.Table

Contents

Synopsis

Header table

data HeaderTable Source

Type for header table.

newHeaderTable :: Size -> IO HeaderTableSource

Creating HeaderTable. The default maxHeaderTableSize is 4096 bytes, an array has 128 entries, resulting 1024 bytes in 64bit machine

Insertion

insertEntry :: Entry -> HeaderTable -> IO (HeaderTable, [Index])Source

Inserting Entry to HeaderTable. New HeaderTable and a set of dropped Index are returned.

Lookup

lookupTable :: Header -> HeaderTable -> IO HeaderCacheSource

Looking up the static table and the header table.

Entry

Which tables

data WhichTable Source

Which table does Index refer to?

Instances

which :: HeaderTable -> Index -> IO (WhichTable, Entry)Source

Which table does Index belong to?