How to normalize a URL in Java?

后端 未结 8 1173
孤独总比滥情好
孤独总比滥情好 2020-12-09 01:27

URL normalization (or URL canonicalization) is the process by which URLs are modified and standardized in a consistent manner. The goal of the normalization p

8条回答
  •  星月不相逢
    2020-12-09 02:15

    The RL library: https://github.com/backchatio/rl goes quite a ways beyond java.net.URL.normalize(). It's in Scala, but I imagine it should be useable from Java.

提交回复
热议问题