Re: [akka-user] [Akka Http] Route parameters in low level API

2016-02-15 Thread Konrad Malawski
Hi Matthieu, Akka HTTP's low level is what it is – low level :-) No, we don't provide any routing capabilities like this in the low level api. Why don't you want to use the high level routing DSL? It has nice support for those things built in. If it's not an option, you can parse the Uri and

[akka-user] [Akka Http] Route parameters in low level API

2016-02-15 Thread Matthieu Ravey
Hi, I'm trying to figure out of to extract part of an URL with the low level API. Basically what I'd like to do is: 1. val requestHandler: HttpRequest => HttpResponse = { 2. case HttpRequest(GET, Uri.Path("/my_path/:parameter"), _, _, _) => 3. HttpResponse(StatuCodes.OK) 4. } and