UNPKG

homebridge-config-ui-x

Version:

A web based management, configuration and control platform for Homebridge

29 lines (28 loc) 893 B
import { AbstractHttpAdapter } from '../adapters/http-adapter'; /** * Defines the `HttpAdapterHost` object. * * `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. * * @see [Http adapter](https://docs.nestjs.com/faq/http-adapter) * * @publicApi */ export declare class HttpAdapterHost<T extends AbstractHttpAdapter = AbstractHttpAdapter> { private _httpAdapter; /** * Accessor for the underlying `HttpAdapter` * * @param httpAdapter reference to the `HttpAdapter` to be set */ /** * Accessor for the underlying `HttpAdapter` * * @example * `const httpAdapter = adapterHost.httpAdapter;` */ httpAdapter: T; }