Skip to content

Instantly share code, notes, and snippets.

@isterin
Created January 2, 2018 20:38
Show Gist options
  • Save isterin/3758ec0600e4342551bfedd2f8f4795d to your computer and use it in GitHub Desktop.
Save isterin/3758ec0600e4342551bfedd2f8f4795d to your computer and use it in GitHub Desktop.
object Application {
def proxyRequest(req:ProxiedHttpRequest) {
val where = req.proxyServer
/*
Here I need access to original request being wrapped to get the headers This is ugly and I’d prefer to access it as I would a regular HttpRequest req.headers()
*/
val headers = req.req.headers()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment