内容简介:使用但是实际上大致的顺序为:
使用 url
包来获取网页内容时,经常要做的一个步骤就是跳过HTTP headers。之前我都是通过搜索空行的方式来实现
(re-search-forward "^$")
但是实际上 url-http
在获取网页内容后,会设置一个名为 url-http-end-of-headers
的marker,我们可以直接通过该maker来跳过HTTP headers。
(goto-char url-http-end-of-headers)
大致的顺序为:
-
url-http函数使用url-http-generic-filter作为 process filter, -
url-http-generic-filter中调用变量url-http-after-change-function中定义的函数 -
在这些
change-function的函数中会调用通过搜索正则表达式^$来设置标记
以上所述就是小编给大家介绍的《url-http-end-of-headers》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Operating Systems
Remzi Arpaci-Dusseau、Andrea Arpaci-Dusseau / Arpaci-Dusseau Books / 2012-8-19 / USD 21.00
A book about modern operating systems. Topics are broken down into three major conceptual pieces: Virtualization, Concurrency, and Persistence. Includes all major components of modern systems includin......一起来看看 《Operating Systems》 这本书的介绍吧!