Created
April 1, 2020 10:36
-
-
Save sw1nn/9244762d5c859c9efa3bf573487f0ec9 to your computer and use it in GitHub Desktop.
This file contains 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
(defn parse-rfc7231-accept-charset [s] | |
(->> s | |
(re-seq rfc-7231-re) | |
(keep #(vector (.group % "charset") | |
(some-> (.group % "weight") | |
Float/parseFloat))) | |
(into {}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment