Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebHost

Sets up an HTTP server, and generates an MRE context for your app to use.

Hierarchy

  • WebHost

Index

Constructors

Accessors

Methods

Constructors

constructor

  • new WebHost(options?: object): WebHost
  • Parameters

    • Default value options: object = {}

    Returns WebHost

Accessors

adapter

  • Returns Adapter

baseDir

  • get baseDir(): string
  • Returns string

baseUrl

  • get baseUrl(): string
  • Returns string

Methods

registerStaticBuffer

  • registerStaticBuffer(filename: string, blob: Buffer): string
  • Serve arbitrary binary blobs from a URL

    Parameters

    • filename: string

      A unique string ID for the blob

    • blob: Buffer

      A binary blob

    Returns string

    The URL to fetch the provided blob