PatchedHeaderGenerator
Index
Methods
Methods
generate
Generate HTTP headers based on the specified parameters.
For detailed description of the original method see:
browserforge.headers.generator.HeaderGenerator.generate
This patched version of the method adds additional quality checks on the output of the original method. It tries to generate headers several times until they match the requirements.Parameters
optionalkeyword-onlybrowser: Iterable[str | Browser] | None = None
optionalkeyword-onlyos: ListOrString | None = None
optionalkeyword-onlydevice: ListOrString | None = None
optionalkeyword-onlylocale: ListOrString | None = None
optionalkeyword-onlyhttp_version: Literal[1, 2] | None = None
optionalkeyword-onlyuser_agent: ListOrString | None = None
optionalkeyword-onlystrict: bool | None = None
optionalkeyword-onlyrequest_dependent_headers: dict[str, str] | None = None
Returns dict[str, str]
Browserforge
HeaderGenerator
that contains patches specific for our usage of the generator.