Documentation ¶
Index ¶
- func ArchiveUrl(req *http.Request, rw *rewrite.WarcRecordRewriter, records warc.Records) (addRecords warc.Records, err error)
- func DoRequest(req *http.Request, records warc.Records) (reqr, resr *warc.Record, err error)
- func HttpResponseRecord(res *http.Response) (*warc.Record, error)
- func PackagePathName(rawurl string) string
- func PackageRecords(urls []string, records warc.Records) (*memfs.Memdir, error)
- func RenderIndexTemplate(w io.Writer, urls []string, records warc.Records) error
- func RequestRecord(req *http.Request) *warc.Record
- func SanitizeResponse(res *http.Response) (raw, sanitized []byte, mimetype string, err error)
- type TemplateData
- type TemplateRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveUrl ¶
func DoRequest ¶
DoRequest performs an archival HTTP request, adding request & response records to the given records pointer, returning the response record & a list of all dependant resources
func HttpResponseRecord ¶
HttpResponseRecord creates a record from an HTTP response
func PackagePathName ¶
func PackageRecords ¶
func RenderIndexTemplate ¶
Types ¶
type TemplateData ¶
type TemplateData struct { Title string Datestamp string Records []*TemplateRecord }
func NewTemplateData ¶
func NewTemplateData(title string, urls []string, records warc.Records) *TemplateData
Click to show internal directories.
Click to hide internal directories.