Liking cljdoc? Tell your friends :D

ajax.util

Short utility functions. A lot of these only exist because the cross platform implementation is annoying.

Short utility functions. A lot of these only exist because the 
cross platform implementation is annoying.
raw docstring

get-content-typeclj/s

(get-content-type response)
source

success?clj/s

(success? status)

Indicates whether an HTTP status code is considered successful.

Indicates whether an HTTP status code is considered successful.
sourceraw docstring

successful-response-codes-setclj/s

A set of successful response types derived from goog.net.HttpStatus.isSuccess.

A set of successful response types derived from `goog.net.HttpStatus.isSuccess`.
sourceraw docstring

throw-errorclj/s

(throw-error args)

Throws an error.

Throws an error.
sourceraw docstring

to-utf8-writerclj/s

(to-utf8-writer to-str)

Takes a function that converts to a string and transforms it into a function that converts to an object that will write UTF-8 to the wire. Note that this is the identity function for JavaScript because the underlying implementations take a string.

Takes a function that converts to a string and transforms it
into a function that converts to an object that will write
UTF-8 to the wire. Note that this is the identity function
for JavaScript because the underlying implementations take
a string.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close