WebKit 中的 URL 验证过程

发布于 2024-12-18 15:58:55 字数 218 浏览 0 评论 0原文

我正在开发一个 Web 浏览器,我需要获取有关 webkit 中 url 地址验证过程的信息,我的意思是,一旦用户输入 url 地址,webkit 如何在语法上验证它(例如,如果它包含逗号,如“,com”,而不是点(如.com)..)并且也在服务器端,如果url存在或不存在.. 我想知道 webkit 使用什么方法来进行此验证.. 所以,如果有人知道对此或网站做出回应的材料,我会给我地址或轨道...... 预先非常感谢

I'm developing a Web browser and I need to get information about the process of validating of an url address in webkit, I mean, once a user enter the url address, how the webkit valid it grammatically (for example, if it contains a comma, like ",com", instead the point (like .com)..) and also in the server side, if the url exists or not..
I want to know what methods the webkit uses to do this validation ..
so, if anyone knows a material which responds to this or a website, I would give me addresses or tracks ...
Thank you very much in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猫弦 2024-12-25 15:58:55

这很可能是由 KURL 类处理的 - http://trac .webkit.org/browser/trunk/Source/WebCore/platform/KURL.cpp -
您可能感兴趣的代码开始于
void KURL::parse(const String& string);

Most likely this is handled by the KURL class - http://trac.webkit.org/browser/trunk/Source/WebCore/platform/KURL.cpp -
and the code that might interest you starts in
void KURL::parse(const String& string);

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文