freeboard
    Preparing search index...

    Function startGatewayServer

    • Start gateway HTTP server.

      Parameters

      • Optionaloptions: {
            port?: number;
            host?: string;
            lookup?: {
                (hostname: string, family: number): Promise<LookupAddress>;
                (hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
                (hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
                (
                    hostname: string,
                    options: LookupOptions,
                ): Promise<LookupAddress | LookupAddress[]>;
                (hostname: string): Promise<LookupAddress>;
            };
            fetchFn?: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
        } = {}
        • Optionalport?: number
        • Optionalhost?: string
        • Optionallookup?: {
              (hostname: string, family: number): Promise<LookupAddress>;
              (hostname: string, options: LookupOneOptions): Promise<LookupAddress>;
              (hostname: string, options: LookupAllOptions): Promise<LookupAddress[]>;
              (
                  hostname: string,
                  options: LookupOptions,
              ): Promise<LookupAddress | LookupAddress[]>;
              (hostname: string): Promise<LookupAddress>;
          }
        • OptionalfetchFn?: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }

      Returns Server<typeof IncomingMessage, typeof ServerResponse>