Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 531 Bytes

server.md

File metadata and controls

23 lines (18 loc) · 531 Bytes

Server

new Server(transport [, root])

Create a server intance. The server object has methods for routing IPC messages as if they were HTTP requests with an API similar to what Express offers.

const Server = require('peranta/server')
const server = new Server(transport)

Methods

server.[GET|POST|PUT|DELETE|ALL]

server.use([path,] callback [, callback...])

server.use(query)

server.debug([json])

server.debug()