The HttpDownloader download page by package net/http. The "html" content is contained in dom parser of package goquery. The "json" content is saved. The "jsonp" content is modified to json. The "text" content will save body plain text only. The page result is saved in Page.
| 29 | // The "text" content will save body plain text only. |
| 30 | // The page result is saved in Page. |
| 31 | type HttpDownloader struct { |
| 32 | } |
| 33 | |
| 34 | func NewHttpDownloader() *HttpDownloader { |
| 35 | return &HttpDownloader{} |
nothing calls this directly
no outgoing calls
no test coverage detected