# Class FakeRes

#### Hierarchy

- EventEmitter
  - FakeRes

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:15

#####
Index

### Constructors

constructor

### Properties

_content
_encoding
_end
_headers
_statusCode
captureRejectionSymbol
captureRejections
defaultMaxListeners
errorMonitor

### Accessors

responded
statusCode

### Methods

addListener
emit
end
eventNames
express4Respond
getHeader
getMaxListeners
hapi16Respond
hapi17Respond
httpRespond
koaRespond
listenerCount
listeners
off
on
once
prependListener
prependOnceListener
rawListeners
removeAllListeners
removeListener
send
setHeader
setMaxListeners
listenerCount
on
once

## Constructors

### constructor

- new FakeRes(): FakeRes

- #### Returns FakeRes

  Overrides EventEmitter.constructor

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:22

## Properties

### _content

_content: any

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:17

### _encoding

_encoding: any

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:18

### _end

_end: any

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:19

### _headers

_headers: any

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:16

### _statusCode

_statusCode: any

- Defined in packages/xarc-app-dev/src/lib/fake-res.ts:20

### `Static` `Readonly` captureRejectionSymbol

captureRejectionSymbol: typeof captureRejectionSymbol

Inherited from EventEmitter.captureRejectionSymbol

- Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:38

### `Static` captureRejections

captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

Inherited from EventEmitter.captureRejections

- Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:44

### `Static` defaultMaxListeners

defaultMaxListeners: number

Inherited from EventEmitter.defaultMaxListeners

- Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:45

### `Static` `Readonly` errorMonitor

errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring `'error'` events. Listeners installed using this symbol are called before the regular `'error'` listeners are called.

Installing a listener using this symbol does not change the behavior once an `'error'` event is emitted, therefore the process will still crash if no regular `'error'` listener is installed.

Inherited from EventEmitter.errorMonitor

- Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:37

## Accessors

### responded

- get responded(): boolean

- #### Returns boolean

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:39

### statusCode

- get statusCode(): any

- #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:31
- set statusCode(c): void

- #### Parameters

  - c: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:35

## Methods

### addListener

- addListener(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.addListener

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:57

### emit

- emit(event, ...args): boolean

- #### Parameters

  - event: string | symbol
  - `Rest` ...args: any[]

  #### Returns boolean

  Inherited from EventEmitter.emit

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:67

### end

- end(content, encoding): void

- #### Parameters

  - content: any
  - encoding: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:58

### eventNames

- eventNames(): (string | symbol)[]

- #### Returns (string | symbol)[]

  Inherited from EventEmitter.eventNames

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:72

### express4Respond

- express4Respond(res): any

- #### Parameters

  - res: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:82

### getHeader

- getHeader(h): any

- #### Parameters

  - h: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:43

### getMaxListeners

- getMaxListeners(): number

- #### Returns number

  Inherited from EventEmitter.getMaxListeners

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:64

### hapi16Respond

- hapi16Respond(reply): any

- #### Parameters

  - reply: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:74

### hapi17Respond

- hapi17Respond(h): any

- #### Parameters

  - h: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:66

### httpRespond

- httpRespond(res): any

- #### Parameters

  - res: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:96

### koaRespond

- koaRespond(res): any

- #### Parameters

  - res: any

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:89

### listenerCount

- listenerCount(event): number

- #### Parameters

  - event: string | symbol

  #### Returns number

  Inherited from EventEmitter.listenerCount

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:68

### listeners

- listeners(event): Function[]

- #### Parameters

  - event: string | symbol

  #### Returns Function[]

  Inherited from EventEmitter.listeners

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:65

### off

- off(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.off

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:61

### on

- on(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.on

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:58

### once

- once(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.once

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:59

### prependListener

- prependListener(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.prependListener

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:70

### prependOnceListener

- prependOnceListener(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.prependOnceListener

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:71

### rawListeners

- rawListeners(event): Function[]

- #### Parameters

  - event: string | symbol

  #### Returns Function[]

  Inherited from EventEmitter.rawListeners

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:66

### removeAllListeners

- removeAllListeners(event?): this

- #### Parameters

  - `Optional` event: string | symbol

  #### Returns this

  Inherited from EventEmitter.removeAllListeners

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:62

### removeListener

- removeListener(event, listener): this

- #### Parameters

  - event: string | symbol
  - listener: ((...args) => void)
    - - (...args): void

      - #### Parameters

        - `Rest` ...args: any[]

        #### Returns void

  #### Returns this

  Inherited from EventEmitter.removeListener

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:60

### send

- send(content): void

- #### Parameters

  - content: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:51

### setHeader

- setHeader(h, v): void

- #### Parameters

  - h: any
  - v: any

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/fake-res.ts:47

### setMaxListeners

- setMaxListeners(n): this

- #### Parameters

  - n: number

  #### Returns this

  Inherited from EventEmitter.setMaxListeners

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:63

### `Static` listenerCount

- listenerCount(emitter, event): number

- #### Parameters

  - emitter: EventEmitter
  - event: string | symbol

  #### Returns number

  #### Deprecated

  since v4.0.0

  Inherited from EventEmitter.listenerCount

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:26

### `Static` on

- on(emitter, event): AsyncIterableIterator<any>

- #### Parameters

  - emitter: EventEmitter
  - event: string

  #### Returns AsyncIterableIterator<any>

  Inherited from EventEmitter.on

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:23

### `Static` once

- once(emitter, event): Promise<any[]>

- #### Parameters

  - emitter: NodeEventTarget
  - event: string | symbol

  #### Returns Promise<any[]>

  Inherited from EventEmitter.once

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:21
- once(emitter, event): Promise<any[]>

- #### Parameters

  - emitter: DOMEventTarget
  - event: string

  #### Returns Promise<any[]>

  Inherited from EventEmitter.once

  - Defined in common/temp/node_modules/.pnpm/@types+node@14.18.63/node_modules/@types/node/events.d.ts:22