Request.getUrl calls URI.toString and remove the trailing /. This gets called A LOT for: - debug logging (rich) - determining if the protocol is websocket (URI.getScheme exists exactly for that) We can directly use the URI instead!