Skip to main content
Version: 3.6

createRequestDebugInfo

Callable

  • createRequestDebugInfo(request: Request<Dictionary>, response?: IncomingMessage | Partial<BrowserResponseLike>, additionalFields?: Dictionary): Dictionary

  • Creates a standardized debug info from request and response. This info is usually added to dataset under the hidden #debug field.


    Parameters

    • request: Request<Dictionary>

      Request object.

    • optionalresponse: IncomingMessage | Partial<BrowserResponseLike> = {}

      Puppeteer Response or NodeJS http.IncomingMessage.

    • optionaladditionalFields: Dictionary = {}

      Object containing additional fields to be added.

    Returns Dictionary