According to pathEnd directive's documentation:
Rejects the request if the unmatchedPath of the [[RequestContext]] is non-empty, or said differently: only passes on the request to its inner route if the request path has been matched completely.
But:
val route = pathPrefix("prefix") {
get {
pathEnd {
complete(HttpEntity("test\n"))
}
}
}
catches GET requests on path "/prefix?something" or "/prefix?something=z", etc...
Is this normal behaviour? How could I make it reject the example paths above?
Thanks
I'm using akka 2.4.4