http - 为什么 Web 协议(protocol)设计为具有 ://suffix?

标签 http protocols

:// 在网络协议(protocol)中有什么意义?例如 ftp://http://

设计模式有原因吗?为什么它不只是 http:http. 或类似 http~

任何对此文档的引用都将不胜感激。

最佳答案

根据 Tim Berners-Lee 的说法,“在当时看来是个好主意”:

Sir Tim Berners-Lee, the creator of the World Wide Web, has confessed that the // in a web address were actually "unnecessary".

He told the Times newspaper that he could easily have designed URLs not to have the forward slashes.

"There you go, it seemed like a good idea at the time," he said.

He admitted that when he devised the web, almost 20 years ago, he had no idea that the forward slashes in every web address would cause "so much hassle".

http://news.bbc.co.uk/2/hi/technology/8306631.stm

看来没有特别的原因。

关于http - 为什么 Web 协议(protocol)设计为具有 ://suffix?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31146292/

相关文章:

javascript - 从 NodeJS 中的 http 请求获取 JSON

java - httpClient.getConnectionManager() 已弃用-应该改用什么?

java - 如何在 Java 中打印/获取传入 HTTP POST 请求的有效负载(使用套接字)

swift - 检查 Swift 中的可选协议(protocol)方法会出现错误吗?

swift - 如何使结构符合具有属性的协议(protocol)符合 swift 4 中的另一个协议(protocol)?

http - 告诉网络浏览器登录失败,因此它不会要求记住密码

C malloc 增加缓冲区大小

swift - 如何编写协议(protocol)扩展以从 Swift 枚举中获取所有 rawValues

swift - 具有通用协议(protocol)类型变量的通用协议(protocol)

generics - 快速泛型的段错误