Liking cljdoc? Tell your friends :D
ClojureScript only.

planck.http

Planck HTTP functionality.

Planck HTTP functionality.
raw docstring

deletecljs

(delete url)
(delete url opts)

Performs a DELETE request. It takes an URL and an optional map of options. These include: :timeout, number, default 5 seconds :debug, boolean, assoc the request on to the response :insecure, proceed even if the connection is considered insecure :headers, map, a map containing headers :user-agent, string, the user agent header to send :socket, string, specifying a system path to a socket to use

Performs a DELETE request. It takes an URL and an optional map of options.
These include:
:timeout, number, default 5 seconds
:debug, boolean, assoc the request on to the response
:insecure, proceed even if the connection is considered insecure
:headers, map, a map containing headers
:user-agent, string, the user agent header to send
:socket, string, specifying a system path to a socket to use
sourceraw docstring

getcljs

(get url)
(get url opts)

Performs a GET request. It takes an URL and an optional map of options. These include: :timeout, number, default 5 seconds :debug, boolean, assoc the request on to the response :insecure, proceed even if the connection is considered insecure :accept, keyword or string. Valid keywords are :json or :xml :content-type, keyword or string Valid keywords are :json or :xml :headers, map, a map containing headers :user-agent, string, the user agent header to send :follow-redirects, boolean, follow HTTP location redirects :max-redirects, number, maximum number of redirects to follow :socket, string, specifying a system path to a socket to use :binary-response, boolean, encode response body as vector of unsigned bytes

Performs a GET request. It takes an URL and an optional map of options.
These include:
:timeout, number, default 5 seconds
:debug, boolean, assoc the request on to the response
:insecure, proceed even if the connection is considered insecure
:accept, keyword or string. Valid keywords are :json or :xml
:content-type, keyword or string Valid keywords are :json or :xml
:headers, map, a map containing headers
:user-agent, string, the user agent header to send
:follow-redirects, boolean, follow HTTP location redirects
:max-redirects, number, maximum number of redirects to follow
:socket, string, specifying a system path to a socket to use
:binary-response, boolean, encode response body as vector of unsigned bytes
sourceraw docstring

(head url)
(head url opts)

Performs a HEAD request. It takes an URL and an optional map of options. These include: :timeout, number, default 5 seconds :debug, boolean, assoc the request on to the response :insecure, proceed even if the connection is considered insecure :headers, map, a map containing headers :user-agent, string, the user agent header to send :socket, string, specifying a system path to a socket to use

Performs a HEAD request. It takes an URL and an optional map of options.
These include:
:timeout, number, default 5 seconds
:debug, boolean, assoc the request on to the response
:insecure, proceed even if the connection is considered insecure
:headers, map, a map containing headers
:user-agent, string, the user agent header to send
:socket, string, specifying a system path to a socket to use
sourceraw docstring

patchcljs

(patch url)
(patch url opts)

Performs a PATCH request. It takes an URL and an optional map of options These options include the relevant options for get in addition to: :form-params, a map, will become the body of the request, urlencoded :multipart-params, a list of tuples, used for file-upload {:multipart-params [["name" "value"] ["name" ["content" "filename"]]

Performs a PATCH request. It takes an URL and an optional map of options
These options include the relevant options for get in addition to:
:form-params, a map, will become the body of the request, urlencoded
:multipart-params, a list of tuples, used for file-upload
                   {:multipart-params [["name" "value"]
                                       ["name" ["content" "filename"]]
sourceraw docstring

postcljs

(post url)
(post url opts)

Performs a POST request. It takes an URL and an optional map of options These options include the relevant options for get in addition to: :form-params, a map, will become the body of the request, urlencoded :multipart-params, a list of tuples, used for file-upload {:multipart-params [["name" "value"] ["name" ["content" "filename"]]

Performs a POST request. It takes an URL and an optional map of options
These options include the relevant options for get in addition to:
:form-params, a map, will become the body of the request, urlencoded
:multipart-params, a list of tuples, used for file-upload
                   {:multipart-params [["name" "value"]
                                       ["name" ["content" "filename"]]
sourceraw docstring

putcljs

(put url)
(put url opts)

Performs a PUT request. It takes an URL and an optional map of options These options include the relevant options for get in addition to: :form-params, a map, will become the body of the request, urlencoded :multipart-params, a list of tuples, used for file-upload {:multipart-params [["name" "value"] ["name" ["content" "filename"]]

Performs a PUT request. It takes an URL and an optional map of options
These options include the relevant options for get in addition to:
:form-params, a map, will become the body of the request, urlencoded
:multipart-params, a list of tuples, used for file-upload
                   {:multipart-params [["name" "value"]
                                       ["name" ["content" "filename"]]
sourceraw docstring

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

× close