Skip to content

Instantly share code, notes, and snippets.

@tomaszperek
Created October 10, 2015 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaszperek/834e9fa1ead49ceb1d13 to your computer and use it in GitHub Desktop.
Save tomaszperek/834e9fa1ead49ceb1d13 to your computer and use it in GitHub Desktop.
Use directives to construct route
val route = protocolAndHost { (p: String, h: String) =>
complete {
Response(s"protocol was $p and host was $h")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment