UNPKG

humanoid-js

Version:

Node.js package to bypass WAF anti-bot JavaScript challenges

17 lines (15 loc) 522 B
class Response { constructor(statusCode, statusMessage, headers, body, host, origin, cookies = null, isSessionChallenged = false, isChallengeSolved = false) { this.statusCode = statusCode; this.statusMessage = statusMessage; this.headers = headers; this.body = body; this.host = host; this.origin = origin; this.cookies = cookies; // cf session & clearance cookies this.isSessionChallenged = isSessionChallenged; this.isChallengeSolved = isChallengeSolved; } } module.exports = Response;