4.0.2 • Published 10 years ago

mesh-http v4.0.2

Weekly downloads
35
License
ISC
Repository
github
Last release
10 years ago

Build Status Coverage Status Dependency Status

HTTP (api) adapter for mesh.

Installation

npm install mesh-http

http(operationName, options)

Performs a new operation on the API

  • options
    • url - (optional) path to the route - automatically resolved by collection if this is omitted
    • method - (optional) resolved by mesh method
    • headers - (optional) HTTP headers
    • query -query params
var mesh = require("mesh");
var http = require("mesh-http");
var db = http();

// POST /people?q=search { name: "abba" }
db({
  url: "/people",
  method: "POST",
  data: { name: "abba" },
  query: { q: "search" }
});
4.0.2

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.0.13

10 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

0.0.7

13 years ago

0.0.6

13 years ago

0.0.5

13 years ago

0.0.4

13 years ago

0.0.3

13 years ago

0.0.2

13 years ago

0.0.1

13 years ago