Background
I have a Keywords list I got from HTTPoison that looks like this:
[
{"Date", "Tue, 10 Jan 2023 09:47:09 GMT"},
{"Content-Type", "text/html; charset=utf-8"},
{"Transfer-Encoding", "chunked"},
{"Connection", "keep-alive"},
{"set-cookie",
"JWT=some_cookie; Domain=.mywebsite; Expires=Sat, 11-Mar-2023 09:47:09 GMT; Secure; HttpOnly; Path=/; SameSite=Lax"}, {"x-frame-options", "sameorigin"},
{"strict-transport-security", "max-age=2592000; includeSubDomains; preload"},
{"CF-Cache-Status", "DYNAMIC"},
{"X-Content-Type-Options", "nosniff"},
{"Server", "cloudflare"}
]
To me, this looks like a Keyword, however, the keys are Strings and not atoms, thus I cannot use the Keyword.get/3
function nor any of its friends.
Question
What is the Elixir way of getting the a value from this keyword list?