Skip to content

Instantly share code, notes, and snippets.

@bjartek
Created July 18, 2009 21:18
Show Gist options
  • Save bjartek/149695 to your computer and use it in GitHub Desktop.
Save bjartek/149695 to your computer and use it in GitHub Desktop.
Set() ++ ( for{
header <- headers firstHeader "Allow"
key <- header.direction.keySet
} yield {
Set(key, Method.valueOf(key))
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment