View Source BrowserForge.Headers.Utils (BrowserForge v0.1.0)

Utility functions for header generation.

Summary

Functions

Determines the browser name from the User-Agent string.

Retrieves the User-Agent from the headers dictionary.

Converts a header name to Pascal case.

Converts all header names in a map to Pascal case.

Converts a value to a tuple if it's not already an enumerable.

Functions

get_browser(user_agent)

Determines the browser name from the User-Agent string.

get_user_agent(headers)

Retrieves the User-Agent from the headers dictionary.

pascalize(name)

Converts a header name to Pascal case.

pascalize_headers(headers)

Converts all header names in a map to Pascal case.

tuplify(obj)

Converts a value to a tuple if it's not already an enumerable.