Documentation
¶
Overview ¶
Package headers generates realistic browser HTTP headers.
Index ¶
- func BrowserName(userAgent string) string
- func Generate(options Options) (map[string]string, error)
- func MajorVersion(browser string) int
- func Pascalize(name string) string
- func PascalizeHeaders(headers map[string]string) map[string]string
- func UserAgent(headers map[string]string) string
- type Browser
- type Generator
- type HTTPBrowser
- type Options
- type RNG
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserName ¶
func MajorVersion ¶
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type HTTPBrowser ¶
func PrepareHTTPBrowser ¶
func PrepareHTTPBrowser(value string) HTTPBrowser
func (HTTPBrowser) IsHTTP2 ¶
func (b HTTPBrowser) IsHTTP2() bool
Click to show internal directories.
Click to hide internal directories.