Skip to content

Instantly share code, notes, and snippets.

@derekwyatt
Created October 19, 2016 19:01
Show Gist options
  • Save derekwyatt/c7c2a45cd426280d5316de788c313365 to your computer and use it in GitHub Desktop.
Save derekwyatt/c7c2a45cd426280d5316de788c313365 to your computer and use it in GitHub Desktop.
val extractedInfo = extractUnmatchedPath & extractRequest & extractClientIP & extractHost
val route = extractedInfo { (path, req, addr, host) =>
// Use the path, addr and host to figure out where the request goes
// and how to rewrite the request
Http().singleRequest(req)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment