Class: HTTP

HTTP(config) → {HTTP}

new HTTP(config) → {HTTP}

Builds an HTTP server for a Contract. Useful for servicing the legacy web.
Parameters:
Name Type Description
config Object General configuration object for the server.
Properties
Name Type Description
secure Object Disable security. Defaults to true fn (!).
bootstrap Object Load Assets from `./assets`.
Source:
Returns:
Instance of the resulting Authority.
Type
HTTP

Methods

(async) define(name, definition) → {Promise}

Creates associations in memory by defining a resource by its `name`.
Parameters:
Name Type Description
name String Human-friendly name of this Resource.
definition Object Resource description object.
Source:
Returns:
[description]
Type
Promise