This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-27
Channels
- # aleph (10)
- # beginners (139)
- # cider (47)
- # clara (19)
- # cljs-dev (2)
- # cljsjs (9)
- # clojure (94)
- # clojure-berlin (1)
- # clojure-dev (23)
- # clojure-greece (5)
- # clojure-italy (5)
- # clojure-nl (14)
- # clojure-uk (36)
- # clojurescript (85)
- # cursive (2)
- # datomic (56)
- # emacs (3)
- # events (1)
- # fulcro (33)
- # garden (3)
- # graphql (6)
- # hoplon (53)
- # jobs (1)
- # leiningen (4)
- # mount (46)
- # nrepl (7)
- # off-topic (8)
- # om (3)
- # other-languages (4)
- # pedestal (7)
- # portkey (7)
- # re-frame (1)
- # reagent (16)
- # remote-jobs (3)
- # ring-swagger (2)
- # shadow-cljs (16)
- # slack-help (2)
- # tools-deps (2)
- # yada (1)
Curious, could https://dev.clojure.org/jira/browse/CLJ-2253 be considered now that clj-1.10 only supports java8 and upwards?
sure, but since slurp supports urls, there should be no reason why it doesn't support urls with basic auth in them.
since slurp supports urls with basic auth there is no reason slurp shouldn't support cookies, since slurp supports cookies there is no reason slurp shouldn't support form encoded data, etc etc etc
I guess you could argue that way, but the reason I asked was that previously, there was no clean way to do the base64 encoding, since java6 doesn't have a public base64 function. Java8 does have one such, so that hurdle is out of the way.
Wether or not said functionality is superfantastic enough to be included in Clojure is another question.
Apart from that. your argument doesn't quite hold. slurp
supports slurping urls. username and passwords are parts of a url, cookies and form-encoded data is not.
Every time I look at this ticket, the less I like it :)
the "is somewhat handy" comment makes me think the goal is a one-liner
but so many parentheses....
java.net.URL
allows basic auth?
we should move this to the hypothetical channel #hypothetical-clojure-dev
@gfredericks if you set the global auth it should pick it up
I lament slurp because it forces the load of http://c.java.io during core.clj load