new Browser(opts) → {undefined}
A simple class imitating a web-browser. It can be considered as a wrapper around famous 'request' module. Current implementation is very limited . Only get method is implemented. It can be done very easily.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts |
Object | Option object. Properties
|
- Source:
Returns:
- Type
- undefined
Methods
get(opts, cb) → {request}
make a HTTP/GET request.
Parameters:
Name | Type | Description |
---|---|---|
opts |
String | Object | If url a string is given, It is used as URL string. Else, It is passed to request.get with instance specific headers and jar settings. |
cb |
function | callback function. passed directly to request.get. |
- Source:
Returns:
- Type
- request