Safe Haskell | None |
---|---|
Language | Haskell2010 |
Network.Mattermost.Types.Internal
Description
The types defined in this module are exported to facilitate efforts such as QuickCheck and other instrospection efforts, but users are advised to avoid using these types wherever possible: they can be used in a manner that would cause significant disruption and may be subject to change without being reflected in the mattermost-api version.
Synopsis
- data Token = Token String
- getTokenString :: Token -> String
- data AutoClose
- autoCloseToHeader :: AutoClose -> [Header]
- data MMConn = MMConn {}
- closeMMConn :: MMConn -> IO ()
- newMMConn :: Connection -> IO MMConn
- isConnected :: MMConn -> IO Bool
- maxLineLength :: Int
- dropTrailingChar :: ByteString -> ByteString
- data ConnectionData = ConnectionData {}
Documentation
getTokenString :: Token -> String Source #
Instances
Eq AutoClose Source # | |
Ord AutoClose Source # | |
Defined in Network.Mattermost.Types.Internal | |
Read AutoClose Source # | |
Show AutoClose Source # | |
autoCloseToHeader :: AutoClose -> [Header] Source #
We return a list of headers so that we can treat the headers like a monoid.
Constructors
MMConn | |
Fields |
closeMMConn :: MMConn -> IO () Source #
maxLineLength :: Int Source #
dropTrailingChar :: ByteString -> ByteString Source #
HTTP ends newlines with rn sequence, but the connection
package doesn't
know this so we need to drop the r after reading lines. This should only be
needed in your compatibility with the HTTP library.
data ConnectionData Source #
Constructors
ConnectionData | |
Fields
|