| Safe Haskell | None |
|---|
Network.HPACK.Table.Static
- staticTableSize :: Size
- toStaticEntry :: Index -> Entry
- toStaticIndex :: HeaderName -> IO (Maybe Index)
- toStaticColonIndex :: Header -> IO (Maybe Index)
- isColon :: Header -> Bool
Documentation
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.