# Interface DevHttpServer

interface DevHttpServer {
addListener: ((event, hander) => void);
getPort: (() => number);
httpServer?: Server<typeof IncomingMessage, typeof ServerResponse>;
start: (() => void);
stop: (() => void);
}

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

#####
Index

### Properties

addListener
getPort
httpServer?
start
stop

## Properties

### addListener

addListener: ((event, hander) => void)

#### Type declaration

- - (event, hander): void

  - #### Parameters

    - event: HttpServerEvent
    - hander: any

    #### Returns void

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

### getPort

getPort: (() => number)

#### Type declaration

- - (): number

  - #### Returns number

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

### `Optional` httpServer

httpServer?: Server<typeof IncomingMessage, typeof ServerResponse>

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

### start

start: (() => void)

#### Type declaration

- - (): void

  - #### Returns void

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

### stop

stop: (() => void)

#### Type declaration

- - (): void

  - #### Returns void

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