Documentation
¶
Overview ¶
Package httpx is the shared HTTP helper for collectors. Every request goes through the scan's guarded client (core.HTTPClient), and responses are memoized per scan so checks that read the same page share one request.
Index ¶
Constants ¶
View Source
const MaxBody = 1 << 20
MaxBody caps how much of a response body is read.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Page ¶
type Page struct {
URL *url.URL // final URL after redirects
Status int
Header http.Header
Cookies []*http.Cookie
Body []byte
Request string // evidence: request line + headers
Response string // evidence: status, headers, truncated body
}
Page is a fetched response.
Click to show internal directories.
Click to hide internal directories.