Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
module Thrift.Protocol
data HeaderProtocol i o Source #
(Transport i, Transport o) => HeaderProtocol | |
|
Instances
(Transport i, Transport o) => Protocol (HeaderProtocol i o) Source # | |
Defined in Thrift.Protocol.Header readByte :: HeaderProtocol i o -> IO ByteString Source # readVal :: HeaderProtocol i o -> ThriftType -> IO ThriftVal Source # readMessage :: HeaderProtocol i o -> ((Text, MessageType, Int32) -> IO b) -> IO b Source # writeVal :: HeaderProtocol i o -> ThriftVal -> IO () Source # writeMessage :: HeaderProtocol i o -> (Text, MessageType, Int32) -> IO () -> IO () Source # |
getProtocolType :: (Transport i, Transport o) => HeaderProtocol i o -> IO ProtocolType Source #
setProtocolType :: (Transport i, Transport o) => HeaderProtocol i o -> ProtocolType -> IO () Source #
getHeaders :: (Transport i, Transport o) => HeaderProtocol i o -> IO [(String, String)] Source #
getWriteHeaders :: (Transport i, Transport o) => HeaderProtocol i o -> Headers Source #
setHeader :: (Transport i, Transport o) => HeaderProtocol i o -> String -> String -> HeaderProtocol i o Source #
setHeaders :: (Transport i, Transport o) => HeaderProtocol i o -> Headers -> HeaderProtocol i o Source #
createHeaderProtocol :: (Transport i, Transport o) => i -> o -> IO (HeaderProtocol i o) Source #
createHeaderProtocol1 :: Transport t => t -> IO (HeaderProtocol t t) Source #