Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 #
autoCloseToHeader :: AutoClose -> [Header] Source #
We return a list of headers so that we can treat the headers like a monoid.
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 #
ConnectionData | |
|