@adapt-arch/utiliti-es
    Preparing search index...

    Class XhrReporterOptions

    HTTP Reporter options.

    Index

    Constructors

    Properties

    batchSize: number = 20

    The number of items to send in a batch.

    endpoint: string = ""

    Endpoint that receives the logs.

    interval: number = 2_000

    The maximum interval, in milliseconds, to wait for the batch size to be achieved before reporting.

    requestTransform?: (request: XMLHttpRequest) => void

    A function that can be used to transform the request before sending it.

    verb: string = "POST"

    HTTP verb used when calling the endpoint.