module Network.HPACK.Types (
HeaderName
, HeaderValue
, HeaderStuff
, Header
, ByteStream
, Index
, DecodeError(..)
) where
import Control.Exception as E
import Data.ByteString (ByteString)
import Data.Typeable
type HeaderName = ByteString
type HeaderValue = ByteString
type Header = (HeaderName, HeaderValue)
type HeaderStuff = ByteString
type ByteStream = ByteString
type Index = Int
data DecodeError = IndexOverrun Index
| EosInTheMiddle
| IllegalEos
| TooLongEos
| EmptyEncodedString
| EmptyBlock
deriving (Eq,Show,Typeable)
instance Exception DecodeError