Repository navigation
v0.4.0
Proxy support, a language-agnostic HTTP fetch API, and a new mobile profile.
Highlights
- Proxy support — route any client through a
socks5://orhttp(s)://proxy (with credentials) viaWithProxy, or plug in your own dialer withWithDialer.WithTimeoutsets the client timeout. - HTTP fetch API (
cmd/serve) — wrap the library in a service:POST /fetcha URL + profile, get the response fetched with that browser's exact TLS/HTTP2 fingerprint.br/zstd/gzipbodies are decoded for you. Endpoints:/fetch,/profiles,/usage,/healthz. - Per-key rate limits & quotas — run the API with
-key(single key) or-keys keys.jsonfor per-key requests/sec and daily quotas. Auth viaAuthorization: BearerorX-API-Key; open when no key is set. chrome_androidprofile — 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.