SnapAPI/sdk
SnapAPI Developer 9290c759da
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
feat: add userAgent parameter for custom User-Agent headers
- Add userAgent?: string to ScreenshotOptions interface
- Implement validation (max 500 chars, no newlines for security)
- Call page.setUserAgent() after page acquisition, before navigation
- Add route handler support for both POST body and GET query
- Add comprehensive test coverage (11 new tests)
- Update OpenAPI documentation with parameter specs and examples
- Update Node.js and Python SDK README examples
- All userAgent tests passing (414 → 425 total tests)

Fixes potential HTTP header injection by rejecting newlines.
Enables custom User-Agent strings for specific browser emulation needs.
2026-03-05 15:10:06 +01:00
..
node feat: add userAgent parameter for custom User-Agent headers 2026-03-05 15:10:06 +01:00
python feat: add userAgent parameter for custom User-Agent headers 2026-03-05 15:10:06 +01:00