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 builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close