Module: api/ParsoidService

Simple Parsoid web service.

module:api/ParsoidService

ParsoidService

For more details on the HTTP api, see the guide.

ParsoidService

For more details on the HTTP api, see the guide.

Source:

Methods

(static) init(parsoidOptions, processLogger) → {Promise}

Instantiates an express server to handle HTTP requests and begins listening on the configured port.

Instantiates an express server to handle HTTP requests and begins listening on the configured port.

WARNING: processLogger is not necessarily an instance of Logger. The interface is merely that exposed by service-runner, log(level, info). Don't expect it to exit after you've logged "fatal" and other such things.

Parameters:
Name Type Description
parsoidOptions Object
processLogger Object
Source:
Returns:

server

Type
Promise