HttpAdapterHost

Defines the HttpAdapterHost object.

See more...

  
class HttpAdapterHost<T extends AbstractHttpAdapter = AbstractHttpAdapter> {
  httpAdapter: T
  listen$: Observable<void>
  listening: boolean
}

See also

Properties

Property Description
httpAdapter: T

Accessor for the underlying HttpAdapter

listen$: Observable<void> Read-only.

Observable that allows to subscribe to the listen event. This event is emitted when the HTTP application is listening for incoming requests.

listening: boolean

Returns a boolean indicating whether the application is listening for incoming requests.

Description

HttpAdapterHost wraps the underlying platform-specific HttpAdapter. The HttpAdapter is a wrapper around the underlying native HTTP server library (e.g., Express). The HttpAdapterHost object provides methods to get and set the underlying HttpAdapter.