Giter Site home page Giter Site logo

hg's Introduction

Header generator

NodeJs package for generating browser-like headers.

Installation

Usage

Examples

API Reference

All public classes, methods and their parameters can be inspected in this API reference.

HeaderGenerator

Class generating random browser headers based on input.


new HeaderGenerator(options)

Param Type
options HeaderGeneratorOptions

headerGenerator.getHeaders(options)

Param Type Description
options HeaderGeneratorOptions main options overrides.

Browser

Param Type Description
name string One of "chrome", "firefox", "safari", "edge" for now.
minVersion number Minimal version of browser used.
maxVersion number Maximal version of browser used.
httpVersion string Either 1 or 2. If none specified the global httpVersion is used.

HeaderGeneratorOptions

Param Type Description
browsers Array.<Browser> List of Browsers to generate the headers for.
operatingSystems Array.<string> List of operating systems the headers for. “windows” “macos” “linux” “android” “ios”. We don't need more I guess.
browserList Array.<string> Browser definition based on the https://www.npmjs.com/package/browserslist.
devices Array.<string> List of devices to generate the headers for. One of "desktop", "mobile".
locales Array.<string> List of at most 10 languages to include in the Accept-Language request header.
httpVersion string Http version to be used to generate headers. http 1 and http 2 sends different header sets.
strategies string Strategies for generating headers - used for simplifying the configuration. For example: "modern-browsers".

hg's People

Contributors

equidem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.