Liking cljdoc? Tell your friends :D

puppetlabs.rbac-client.core

This is the standard api-caller interface for talking to json apis with pe-style errors

This is the standard api-caller interface for talking to json apis with pe-style errors
raw docstring

api-callerclj

(api-caller client base-url method path)
(api-caller client base-url method path opts)

Given a client, base-url, method, path and optionally opts makes a request to base-url+path using the client standardizing errors into a standard format.

Throws slingshot maps of the format {:kind :msg :exception :details}

Given a client, base-url, method, path and optionally opts makes a request
to base-url+path using the client standardizing errors into a standard format.

Throws slingshot maps of the format {:kind :msg :exception :details}
sourceraw docstring

http-error-selectorclj

(http-error-selector error)

Use this with slingshot to catch all errors orginating in the client

Use this with slingshot to catch all errors orginating in the client
sourceraw docstring

http-error?clj

(http-error? response)

Given a response map from the RBAC HTTP API, checks to see if it is a 4xx or 5xx.

Given a response map from the RBAC HTTP API, checks to see if it is a 4xx or
5xx.
sourceraw docstring

json-api-callerclj

(json-api-caller client base-url method path)
(json-api-caller client base-url method path opts)

Wraps api caller but will convert the body of the request/response to/from json. Adds appropriate content type headers.

Wraps api caller but will convert the body of the request/response to/from json.
Adds appropriate content type headers.
sourceraw docstring

parse-bodyclj

(parse-body response)
source

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

× close