Skip to content

Instantly share code, notes, and snippets.

@jcarley
Last active November 19, 2016 13:56
Show Gist options
  • Save jcarley/83dea459b08f3fbd1fd7d5ee01f8f930 to your computer and use it in GitHub Desktop.
Save jcarley/83dea459b08f3fbd1fd7d5ee01f8f930 to your computer and use it in GitHub Desktop.
AWS Headers in Elixir
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