Home Reference Source
import RequestLibWARCGenerator from 'node-warc/lib/writers/requestLib.js'
public class | source

RequestLibWARCGenerator

Extends:

WARCWriterBase → RequestLibWARCGenerator

WARC Generator for use with request

See:

Constructor Summary

Public Constructor
public

constructor(defaultOpts: WARCFileOpts)

Create a new Request lib WARC generator

Member Summary

Private Members
private

_UP: URL

Method Summary

Public Methods
public

async generateWarcEntry(resp: Object): Promise<void>

Generates a WARC record.

Public Constructors

public constructor(defaultOpts: WARCFileOpts) source

Create a new Request lib WARC generator

Params:

NameTypeAttributeDescription
defaultOpts WARCFileOpts
  • optional
  • nullable: true

Private Members

private _UP: URL source

Public Methods

public async generateWarcEntry(resp: Object): Promise<void> source

Generates a WARC record. Needs the following request lib defaults: rp.defaults({ resolveWithFullResponse: true, simple: false })

Params:

NameTypeAttributeDescription
resp Object

Return:

Promise<void>