Home Identifier Source Test Repository
public class | source

Document

Model for loaded document from link url request

Constructor Summary

Public Constructor
public

constructor(url: String, res: HttpResponse)

Constructor function

Member Summary

Public Members
public get

$: * | any | Object | undefined: *

Parses response body parsed by cheerio

public get

res: HttpResponse | HttpsResponse: *

Returns response object

public get

url: String: *

Returns document url

Private Members
private

_$: *

private

_res: HttpResponse | HttpsResponse

Response object

private

Url document has been loaded from

Method Summary

Public Methods
public

resolve(link: String): *

Resolves parsed link against document url

Public Constructors

public constructor(url: String, res: HttpResponse) source

Constructor function

Params:

NameTypeAttributeDescription
url String

request url

res HttpResponse

response object

Public Members

public get $: * | any | Object | undefined: * source

Parses response body parsed by cheerio

Return:

* | any | Object | undefined

public get res: HttpResponse | HttpsResponse: * source

Returns response object

Return:

HttpResponse | HttpsResponse

public get url: String: * source

Returns document url

Return:

String

Private Members

private _$: * source

private _res: HttpResponse | HttpsResponse source

Response object

private _url: String source

Url document has been loaded from

Public Methods

public resolve(link: String): * source

Resolves parsed link against document url

Params:

NameTypeAttributeDescription
link String

document link

Return:

*