headers

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 2 Imported by: 0

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 struct {
	Key   string
	Value string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL