Skip to content

v0.4.0

Choose a tag to compare

@North-web-dev North-web-dev released this 07 Jul 03:53
· 5 commits to main since this release

Proxy support, a language-agnostic HTTP fetch API, and a new mobile profile.

Highlights

  • Proxy support — route any client through a socks5:// or http(s):// proxy (with credentials) via WithProxy, or plug in your own dialer with WithDialer. WithTimeout sets the client timeout.
  • HTTP fetch API (cmd/serve) — wrap the library in a service: POST /fetch a URL + profile, get the response fetched with that browser's exact TLS/HTTP2 fingerprint. br/zstd/gzip bodies are decoded for you. Endpoints: /fetch, /profiles, /usage, /healthz.
  • Per-key rate limits & quotas — run the API with -key (single key) or -keys keys.json for per-key requests/sec and daily quotas. Auth via Authorization: Bearer or X-API-Key; open when no key is set.
  • chrome_android profile — mobile Chrome (Android UA, sec-ch-ua-mobile: ?1). Six profiles total: chrome, chrome_android, firefox, safari, edge, ios.
  • Docker — multi-stage build to a distroless image.

Install

go get github.com/North-web-dev/impersonate-http@v0.4.0

Non-breaking: New, NewTransport, and NewByName now take optional Options; existing calls are unchanged.