Created
July 8, 2018 05:02
-
-
Save proclnas/ba74cab022ebb6a6b7f310676119457a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns http) | |
(defn http-get [url] | |
(def client (java.net.URL. url)) | |
(def response (slurp (.openStream client))) | |
(println response)) | |
(http-get "http://proclnas.github.io") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment