http2-0.0.1: HTTP/2.0 library including HPACK

Safe HaskellNone

Network.HPACK.Table.Static

Synopsis

Documentation

staticTableSize :: SizeSource

The size of static table.

toStaticEntry :: Index -> EntrySource

Get Entry from the static table.

>>> toStaticEntry 8
(42,(":status","200"))
>>> toStaticEntry 49
(37,("range",""))

toStaticIndex :: HeaderName -> IO (Maybe Index)Source

Get Index from the static table.

>>> toStaticIndex ":status"
Just 13
>>> toStaticIndex "date"
Just 32
>>> toStaticIndex "user-agent"
Just 57

toStaticColonIndex :: Header -> IO (Maybe Index)Source

Get Index from the static table. Only colon headers.

>>> toStaticColonIndex (":path","/index.html")
Just 5
>>> toStaticColonIndex (":status","200")
Just 8

isColon :: Header -> BoolSource

Checking if HeaderName starts with colon.