Created
October 19, 2016 19:01
-
-
Save derekwyatt/c7c2a45cd426280d5316de788c313365 to your computer and use it in GitHub Desktop.
This file contains 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
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