Class RequestRule

Hierarchy (view full)

Implements

Implemented by

Constructors

Properties

id: string
priority: number
requestCount: number = 0
requests: Promise<CompletedRequest>[]

Methods

  • Parameters

    • withoutExactCompletion: boolean = false

    Returns string

  • Parameters

    • request: OngoingRequest
    • response: OngoingResponse
    • options: {
          emitEventCallback?: ((type: string, event: unknown) => void);
          record: boolean;
      }
      • OptionalemitEventCallback?: ((type: string, event: unknown) => void)
          • (type, event): void
          • Parameters

            • type: string
            • event: unknown

            Returns void

      • record: boolean

    Returns Promise<void>

  • Parameters

    • req: OngoingRequest
    • res: OngoingResponse
    • options: {
          emitEventCallback?: ((type: string, event: unknown) => void);
          record?: boolean;
      }
      • OptionalemitEventCallback?: ((type: string, event: unknown) => void)
          • (type, event): void
          • Parameters

            • type: string
            • event: unknown

            Returns void

      • Optionalrecord?: boolean

    Returns Promise<void>