UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

1 lines 8.39 kB
{"version":3,"file":"HTTPRequest.js","sourceRoot":"","sources":["../../../../src/api/HTTPRequest.ts"],"names":[],"mappings":";;;AAymBA,oCAkBC;AA+FD,kCAgBC;AAluBD,+CAAuD;AACvD,iDAAyC;AACzC,qDAAuD;AAsDvD;;;;GAIG;AACU,QAAA,qCAAqC,GAAG,CAAC,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAsB,WAAW;IAM/B;;OAEG;IACH,eAAe,CAAqB;IACpC;;OAEG;IACH,YAAY,GAAkB,IAAI,CAAC;IACnC;;OAEG;IACH,SAAS,GAAwB,IAAI,CAAC;IACtC;;OAEG;IACH,gBAAgB,GAAG,KAAK,CAAC;IACzB;;OAEG;IACH,cAAc,GAAkB,EAAE,CAAC;IAEnC;;OAEG;IACO,YAAY,GAQlB;QACF,OAAO,EAAE,KAAK;QACd,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,EAAE;QACZ,eAAe,EAAE;YACf,MAAM,EAAE,yBAAyB,CAAC,IAAI;SACvC;QACD,gBAAgB,EAAE,EAAE;QACpB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,IAAI;KAClB,CAAC;IASF;;OAEG;IACH,gBAAe,CAAC;IAOhB;;;;OAIG;IACH,wBAAwB;QACtB,IAAA,kBAAM,EAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC;IAC5C,CAAC;IAED;;;OAGG;IACH,kBAAkB;QAChB,IAAA,kBAAM,EAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,sCAAsC,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,gBAAgB;QACd,IAAA,kBAAM,EAAC,IAAI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