# Class AdminHttp

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:67

#####
Index

### Constructors

constructor

### Properties

_adminHtml
_eventClientId
_eventClients
_getLogs
_instanceId
_logHtml
_port
_ready
_sendStreamTimer
_server

### Methods

_prepareLogs
_readAsset
_sendLogsToStreamClients
_serveHtml
_serveLogs
_streamLogsHandler
requestListener
sendLogsToStreamClients
shutdown

## Constructors

### constructor

- new AdminHttp(options): AdminHttp

- #### Parameters

  - options: AdminHttpOptions

  #### Returns AdminHttp

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:79

## Properties

### _adminHtml

_adminHtml: string

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:71

### _eventClientId

_eventClientId: number

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:74

### _eventClients

_eventClients: Record<number, EventClient>

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:75

### _getLogs

_getLogs: ((name) => any)

#### Type declaration

- - (name): any

  - #### Parameters

    - name: string

    #### Returns any

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:69

### _instanceId

_instanceId: number

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:73

### _logHtml

_logHtml: string

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:70

### _port

_port: number

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:72

### _ready

_ready: Defer<number>

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:77

### _sendStreamTimer

_sendStreamTimer: Timeout

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:76

### _server

_server: Server<typeof IncomingMessage, typeof ServerResponse>

- Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:68

## Methods

### _prepareLogs

- _prepareLogs(lastEntryId, name?): any

- #### Parameters

  - lastEntryId: LogEntryId
  - name: string = "app"

  #### Returns any

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:112

### _readAsset

- _readAsset(filename, memoize, processor?): string

- #### Parameters

  - filename: string
  - memoize: string
  - `Optional` processor: ((c) => any)
    - - (c): any

      - #### Parameters

        - c: any

        #### Returns any

  #### Returns string

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:93

### _sendLogsToStreamClients

- _sendLogsToStreamClients(): void

- #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:192

### _serveHtml

- _serveHtml(res, content): void

- #### Parameters

  - res: ServerResponse
  - content: string

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:105

### _serveLogs

- _serveLogs(url, res): void

- #### Parameters

  - url: UrlWithStringQuery
  - res: ServerResponse

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:138

### _streamLogsHandler

- _streamLogsHandler(url, res): void

- #### Parameters

  - url: UrlWithStringQuery
  - res: ServerResponse

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:159

### requestListener

- requestListener(req, res): void | ServerResponse

- #### Parameters

  - req: IncomingMessage
  - res: ServerResponse

  #### Returns void | ServerResponse

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:232

### sendLogsToStreamClients

- sendLogsToStreamClients(): void

- #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:184

### shutdown

- shutdown(): void

- Shutdown the http server

  #### Returns void

  - Defined in packages/xarc-app-dev/src/lib/dev-admin/admin-http.ts:276