Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
"I just want to download a resource using HTTP" is a common cry from users and reviewers. Such functionality is beyond the scope of Beast. Building a full featured HTTP client is a difficult task and large enough to deserve its own library. There are many things to deal with such as the various message body encodings, complex parsing of headers, difficult header semantics such as“我只想通过 HTTP 下载资源”,这是用户和评审人员经常提出的诉求。此类功能超出 Beast 的范畴。构建一个功能完备的 HTTP 客户端是一项艰巨的任务,其体量足以成为一个独立的库。其中存在诸多需要处理的事项,例如各类消息体编码、复杂的标头解析、Rangeand和 Cache-Control, redirection,等晦涩的标头语义、重定向、Expect: 100-continue, connection retrying, domain name resolution, TLS, and much, much more. It is the author's position that Boost first needs a common set of nouns and verbs for manipulating HTTP at the protocol level; Beast provides that language.、连接重试、域名解析、TLS 等。作者认为,Boost 首先需要一套用于在协议层面操作 HTTP 的通用名词和动词,而 Beast 正是提供该语言的库。