=htc,doc #18496 lots of small improvements and last missing docs
This commit is contained in:
parent
15897a3b48
commit
bb053bea2a
57 changed files with 434 additions and 189 deletions
|
|
@ -66,7 +66,10 @@ class RejectionHandlerExamplesSpec extends RoutingSpec {
|
|||
|
||||
"test custom handler example" in {
|
||||
import akka.http.scaladsl.server._
|
||||
Get() ~> Route.seal(reject(MissingCookieRejection("abc"))) ~> check {
|
||||
val route = Route.seal(reject(MissingCookieRejection("abc")))
|
||||
|
||||
// tests:
|
||||
Get() ~> route ~> check {
|
||||
responseAs[String] === "No cookies, no service!!!"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue