Last active
November 19, 2016 13:56
-
-
Save jcarley/83dea459b08f3fbd1fd7d5ee01f8f930 to your computer and use it in GitHub Desktop.
AWS Headers in Elixir
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
content_type = "quicktime/mov" | |
headers = %{ | |
:"content_type" => content_type, | |
:"x-amz-acl" => "private", | |
:"x-amz-server-side-encryption" => "AES256" | |
} | |
IO.inspect headers | |
headers = Map.new | |
|> Map.put("content_type", content_type) | |
|> Map.put("x-amz-acl", "private") | |
|> Map.put("x-amz-server-side-encryption", "AES256") | |
IO.inspect headers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment