Liking cljdoc? Tell your friends :D

clj-momo.test-helpers.http


content-type?clj

(content-type? expected-str)

decodeclj

(decode s)

deleteclj

(delete path port & {:as options})

edn?clj


encodeclj

(encode s)

encode-bodyclj

(encode-body body content-type)

getclj

(get path port & {:as options})

json?clj


parse-bodyclj

(parse-body http-response)
(parse-body {{content-type "Content-Type"} :headers body :body} default)

patchclj

(patch path port & {:as options})

postclj

(post path port & {:as options})

putclj

(put path port & {:as options})

urlclj

(url path port)

with-port-fnclj

(with-port-fn port-fn http-fn)

Helper to compose a fn that knows how to lookup an HTTP port with an HTTP method fn (from above) Example: (def post (http/with-port-fn get-http-port http/post))

Helper to compose a fn that knows how to lookup an HTTP port with
an HTTP method fn (from above)
Example:
  (def post (http/with-port-fn get-http-port http/post))
raw docstring

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

× close