Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get base uri of io.netty.handler.codec.http.HttpRequest

In netty HttpRequest there is only a method request.getUri() which returns the path after host:port. Is there any way I can get the entire URL, or the host:port values separately?

like image 687
user2894296 Avatar asked Sep 01 '25 00:09

user2894296


1 Answers

You will need to construct this from the channel via the Channel.localAddress() on the server-side.

like image 55
Norman Maurer Avatar answered Sep 03 '25 19:09

Norman Maurer