Open dave08 opened 6 years ago
This functionality can be simulated by setting the Host
header:
handleRequest(Get, "/") {
addHeader(HttpHeaders.Host, "localhost:1234")
}.apply {
assertEquals(1234, request.port())
}
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Currently there is no parameter for which port to use in sending a test request, I propose to add this function: