CrossClj

0.2.3 docs

SourceDocs



RECENT
    VARS
    base64-decode<
    base64-decode>
    base64-encode<
    base64-encode>
    to-base64

    « Index of all namespaces of this project

    Middleware to perform Base64 transformations on core.async messages.
    
    (base64-decode< source-channel)
    Reads Base64-encoded strings from the given source channel, decodes them,
    and outputs a byte array to the returned channel. You have to make
    this into a String yourself, if it is one!
    (base64-decode> target-channel)
    Returns a new channel that accepts Base64-encoded strings, decodes them,
    and outputs a byte array to the given target channel.
    You have to turn that into a String yourself, if it is one!
    (base64-encode< source-channel)
    Accepts byte arrays or Strings on the given channel,
    Base64 encodes each message, and outputs the resulting string to the returned channel.
    (base64-encode> target-channel)
    Returns a new channel that accepts byte arrays or Strings, Base64 encodes them,
    and outputs the result to the given target channel.
    (to-base64 input)
    Like the b64 encoding function, but returns a UTF-8 string rather than a byte array.
    Input can be either a String or a byte array.