cql-io-1.1.1: Cassandra CQL client.

Safe HaskellSafe
LanguageHaskell2010

Database.CQL.IO.Hexdump

Description

Create hexadecimal-encoded (lazy) ByteStrings in a pretty-printed format common to *nix hexdump programs. For example:

>>> import Database.CQL.IO.Hexdump
>>> import qualified Data.ByteString.Lazy.Char8 as Char8
>>> Char8.putStrLn $ hexdump "GET /foo/bar?x=y HTTP/1.1\r\nHost: foo.com\r\n\r\n"
0001:  47 45 54 20  2f 66 6f 6f  2f 62 61 72  3f 78 3d 79   GET /foo/bar?x=y
0002:  20 48 54 54  50 2f 31 2e  31 0d 0a 48  6f 73 74 3a    HTTP/1.1..Host:
0003:  20 66 6f 6f  2e 63 6f 6d  0d 0a 0d 0a                 foo.com....

Documentation