Created
September 17, 2015 16:04
-
-
Save EdgeCaseBerg/3f84b8e43c2633eeac79 to your computer and use it in GitHub Desktop.
spray.httpx.RequestBuilding
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
- Options("/generate/imageId/OneToOne/800").withHeaders(List(HttpHeaders.Origin(Seq(HttpOrigin("http", Host("allowedhost.com")))))) ~> myroute ~> check { | |
+ Options("/generate/imageId/OneToOne/800") ~> addHeader("Origin", "http://allowedhost.com") ~> myroute ~> check { | |
Above is scalatest spray example of adding headers to request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment