Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Thrift.Protocol
- data JSONProtocol t = JSONProtocol t
Documentation
module Thrift.Protocol
data JSONProtocol t Source #
The JSON Protocol data uses the standard TJSONProtocol
. Data is
encoded as a JSON ByteString
JSONProtocol t | Construct a |
Instances
Transport t => StatelessProtocol (JSONProtocol t) Source # | |
Defined in Thrift.Protocol.JSON serializeVal :: JSONProtocol t -> ThriftVal -> ByteString Source # deserializeVal :: JSONProtocol t -> ThriftType -> ByteString -> ThriftVal Source # | |
Transport t => Protocol (JSONProtocol t) Source # | |
Defined in Thrift.Protocol.JSON readByte :: JSONProtocol t -> IO ByteString Source # readVal :: JSONProtocol t -> ThriftType -> IO ThriftVal Source # readMessage :: JSONProtocol t -> ((Text, MessageType, Int32) -> IO b) -> IO b Source # writeVal :: JSONProtocol t -> ThriftVal -> IO () Source # writeMessage :: JSONProtocol t -> (Text, MessageType, Int32) -> IO () -> IO () Source # |