=doc fix mentions of spray and link to magnet pattern
This commit is contained in:
parent
546936146b
commit
fd85cac20f
19 changed files with 27 additions and 28 deletions
|
|
@ -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>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue