【发布时间】:2016-07-28 10:47:08
【问题描述】:
如何使用 Golang 的 net/http 的 http.Get(url string) 但阻止某些 url 和资源的请求?
例如
http.Get("https://google.com") // But somehow block the main CSS file.
【问题讨论】:
-
http.Get 函数只获取一个资源。对于
https://google.com/,CSS 在页面上是内联的。它不在单独的资源或文件中。