Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cuadrix committed Feb 9, 2020
2 parents 4fffc27 + 1c1e3f1 commit 54b753a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm i puppeteer-page-proxy

- `pageOrReq` <[object](https://developer.mozilla.org/en-US/docs/Glossary/Object)> 'Page' or 'Request' object to set a proxy for.
- `proxy` <[string](https://developer.mozilla.org/en-US/docs/Glossary/String)> Proxy to use in the current page.
* Begins with a protocol e.g. **http://**, **https://**, **socks://**
* Begins with a protocol (e.g. http://, https://, socks://)

#### PageProxy.lookup(page[, lookupService, isJSON, timeout])

Expand Down Expand Up @@ -99,7 +99,8 @@ Since all requests can be handled exactly once, it's not possible to call other
```js
const proxy = 'https://login:pass@host:port';
```
#### Lookup IP used by proxy -> Useful in headless environment:
#
#### Lookup IP used by proxy:
```js
const puppeteer = require('puppeteer');
const useProxy = require('puppeteer-page-proxy');
Expand Down

0 comments on commit 54b753a

Please sign in to comment.