Liking cljdoc? Tell your friends :D
ClojureScript only.

com.avisi-apps.gaps.http.core


requestcljs

(request {:com.avisi-apps.gaps.http.core/keys [method body headers url base-url
                                               content-type auth query-params]
          :or {method :get content-type :json url "/" headers {}}})

Accepts the following options:

  • ::base-url:
  • ::endpoint: part of the url after the base-url
  • ::method: #{:get :post :put :head :delete}
  • ::query-params: a map
  • ::headers: a map with headers
  • ::content-type: #{:json} is :json by default
  • ::body: The body of the request will get converted to JSON by default
Accepts the following options:
* `::base-url`:
* `::endpoint`: part of the url after the base-url
* `::method`: #{:get :post :put :head :delete}
* `::query-params`: a map
* `::headers`: a map with headers
* `::content-type`: #{:json} is :json by default
* `::body`: The body of the request will get converted to JSON by default
sourceraw docstring

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

× close