Implement returnRawHtml parameter. resolves #172 resolves #165

This commit is contained in:
ngosang
2021-08-01 22:08:55 +02:00
parent 4199db5a41
commit 9dae74bc28
2 changed files with 7 additions and 2 deletions

View File

@@ -146,6 +146,7 @@ headers | Optional. To specify user headers.
maxTimeout | Optional, default value 60000. Max timeout to solve the challenge in milliseconds.
cookies | Optional. Will be used by the headless browser. Follow [this](https://github.com/puppeteer/puppeteer/blob/v3.3.0/docs/api.md#pagesetcookiecookies) format.
returnOnlyCookies | Optional, default false. Only returns the cookies. Response data, headers and other parts of the response are removed.
returnRawHtml | Optional, default false. The response data will be returned without JS processing. This is useful for JSON or plain text content.
Example response from running the `curl` above: