Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeoutMS = 15000 MaxTimeoutMS = 60000 MaxURLLength = 2000 MaxFetchBytes = 10 * 1024 * 1024 MaxReplayChars = 100000 DefaultTTL = 15 * time.Minute DefaultCacheSize = 50 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func IsBotChallengeContent ¶
func JoinPromptAndContent ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SetExtractor ¶
func (*Client) SetHTTPClient ¶
type RecoveryHint ¶
type Result ¶
type Result struct {
URL string `json:"url"`
FinalURL string `json:"final_url,omitempty"`
StatusCode int `json:"status_code,omitempty"`
CodeText string `json:"code_text,omitempty"`
ContentType string `json:"content_type,omitempty"`
Title string `json:"title,omitempty"`
Content string `json:"content,omitempty"`
ContentChars int `json:"content_chars"`
Bytes int `json:"bytes"`
DurationMS int64 `json:"duration_ms"`
FromCache bool `json:"from_cache"`
Truncated bool `json:"truncated"`
LowContent bool `json:"low_content,omitempty"`
LowContentReason string `json:"low_content_reason,omitempty"`
NextSteps string `json:"next_steps,omitempty"`
RedirectBlocked bool `json:"redirect_blocked,omitempty"`
RedirectLocation string `json:"redirect_location,omitempty"`
Recovery *RecoveryHint `json:"recovery,omitempty"`
ExtractError string `json:"extract_error,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.