Hi,
I'm using akka-http to build a restful api. In one route of my app, the
route need to access one of my other routes in the same app, like the
following:
- `/foo`, which access `/bar` and returns slightly modified content from
the latter as response
- `/bar`
In the implementation of `/foo`, I used absolute path: `127.0.0.1:8080/bar`,
and request by `Http().singleRequest(...)`. This works fine initially, but
as I start to write the test cases with akka test kit(ScalatestRouteTest),
the port 8080 seems cannot be accessed in my test:
```
Get("/foo") ~> route ~> check {...}
```
and it shows the error:
```
akka.stream.StreamTcpException: Tcp command
[Connect(127.0.0.1:8080,None,List(),Some(10 seconds),true)] failed
```
Thus I'm looking for a way to make request to `/bar`, with relative URL,
hoping it solve this problem. Any idea is appreciated.
---
BR,
Todd Leo
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.