Liking cljdoc? Tell your friends :D

http-tool

Clojars Project

Clojure HTTP client using only java.net

Installation

Leiningen/Boot

[com.github.paytonward6/http-tool "0.1.1"]

Clojure CLI/deps.edn

com.github.paytonward6/http-tool {:mvn/version "0.1.1"}

Gradle

implementation("com.github.paytonward6:http-tool:0.1.1")

Usage

(require '[http-tool.client :as http])

(def response (http/get-url "https://google.com"))

;; Returns a hash map of:
;;
;;  {:body "..."
;;   :url "https://google.com"
;;   :status 200
;;   :headers {:status 200 :content-type "text/html; charset=ISO-8859-1" ...}
;;   :version 2}

Can you improve this documentation?Edit on GitHub

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

× close