Documentation
¶
Overview ¶
Package headers provides browser header generation for HTTP requests. It generates realistic browser headers with proper Accept, User-Agent, and other fields to mimic real browser traffic patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserType ¶
type BrowserType string
BrowserType represents a browser family.
const ( Chrome BrowserType = "chrome" Firefox BrowserType = "firefox" Edge BrowserType = "edge" )
type Header ¶
Header represents an HTTP header key-value pair.
func Generate ¶
func Generate(browser BrowserType) []Header
Generate creates a set of browser-like HTTP headers.
func GenerateRandom ¶
func GenerateRandom() []Header
GenerateRandom creates headers with a random browser type.
Click to show internal directories.
Click to hide internal directories.