=doc fix mentions of spray and link to magnet pattern

This commit is contained in:
Johannes Rudolph 2015-05-21 13:14:54 +02:00
parent 546936146b
commit fd85cac20f
19 changed files with 27 additions and 28 deletions

View file

@ -136,7 +136,7 @@ class HttpServerExampleSpec extends WordSpec with Matchers {
path("hello") {
get {
complete {
<h1>Say hello to spray</h1>
<h1>Say hello to akka-http</h1>
}
}
}

View file

@ -28,14 +28,14 @@ class RespondWithDirectivesExamplesSpec extends RoutingSpec {
"respondWithHeaders-examples" in {
val route =
path("foo") {
respondWithHeaders(RawHeader("Funky-Muppet", "gonzo"), Origin(Seq(HttpOrigin("http://spray.io")))) {
respondWithHeaders(RawHeader("Funky-Muppet", "gonzo"), Origin(Seq(HttpOrigin("http://akka.io")))) {
complete("beep")
}
}
Get("/foo") ~> route ~> check {
header("Funky-Muppet") shouldEqual Some(RawHeader("Funky-Muppet", "gonzo"))
header[Origin] shouldEqual Some(Origin(Seq(HttpOrigin("http://spray.io"))))
header[Origin] shouldEqual Some(Origin(Seq(HttpOrigin("http://akka.io"))))
responseAs[String] shouldEqual "beep"
}
}