http#ServerOptions TypeScript Examples

The following examples show how to use http#ServerOptions. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: utils.ts    From cardano-launcher with Apache License 2.0 7 votes vote down vote up
/**
 * Sets up the parameters for `http.request` for this Api.
 *
 * @param path - the api route (without leading slash)
 * @param options - extra options to be added to the request.
 * @return an options object suitable for `http.request`
 */
export function makeRequest(
  api: Api,
  path: string,
  options?: ServerOptions | HttpsServerOptions
): RequestOptions {
  return Object.assign(
    {},
    api.requestParams,
    {
      path: api.requestParams.path + path,
    },
    options
  );
}
Example #2
Source File: ExpressReceiver.d.ts    From flect-chime-sdk-demo with Apache License 2.0 5 votes vote down vote up
start(portOrListenOptions: number | ListenOptions, serverOptions?: ServerOptions): Promise<Server>;
Example #3
Source File: HTTPReceiver.d.ts    From flect-chime-sdk-demo with Apache License 2.0 5 votes vote down vote up
start(portOrListenOptions: number | ListenOptions, serverOptions?: ServerOptions): Promise<Server>;