Skip to content

Commit

Permalink
Add type hints for GraalVM (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarref authored and martinklepsch committed Dec 4, 2019
1 parent c6c3d61 commit 05d0454
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clj_http/lite/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@
(defn url-decode
"Returns the form-url-decoded version of the given string, using either a
specified encoding or UTF-8 by default."
[encoded & [encoding]]
(URLDecoder/decode encoded (or encoding "UTF-8")))
[^String encoded & [encoding]]
(let [^String encoding (or encoding "UTF-8")]
(URLDecoder/decode encoded encoding)))

(defn url-encode
"Returns an UTF-8 URL encoded version of the given string."
[unencoded]
[^String unencoded]
(URLEncoder/encode unencoded "UTF-8"))

(defmacro base64-encode
Expand Down

0 comments on commit 05d0454

Please sign in to comment.