JSDOMCrawlingContext <UserData, JSONData>
Hierarchy
- InternalHttpCrawlingContext<UserData, JSONData, JSDOMCrawler>
- JSDOMCrawlingContext
Index
Properties
body
contentType
Parsed Content-Type header: { type, encoding }
.
Type declaration
encoding: BufferEncoding
type: string
crawler
enqueueLinks
Type declaration
Parameters
optionaloptions: JSDOMCrawlerEnqueueLinksOptions
Returns Promise<BatchAddRequestsResult>
id
json
The parsed object from JSON string if the response contains the content type application/json.
log
optionalproxyInfo
An object with information about currently used proxy by the crawler and configured by the ProxyConfiguration class.
request
The original Request object.
response
sendRequest
Type declaration
Parameters
optionaloverrideOptions: Partial<OptionsInit>
Returns Promise<Response<string>>
The request body of the web page. The type depends on the
Content-Type
header of the web page:text/html
,application/xhtml+xml
,application/xml
MIME content types