vas-http
http server and client for vas@3.0.0
npm install --save vas-http@pre-release
example
const combine = const values = const pull = const Log = const vas = const http = const data = gives: 'data' 1: 'human' 2: 'computer' 3: 'JavaScript' const things = vas const combinedModules = combinedModulesvasstart
$ curl -i 'http://localhost:5000/things'HTTP/1.1 418 I'm a teapotcat: meowContent-Type: application/json; boundary=NLNLDate: Mon, 23 Jan 2017 12:45:52 GMTConnection: keep-aliveTransfer-Encoding: chunked { "value": "human"} { "value": "computer"} { "value": "JavaScript"}
$ curl -i 'http://localhost:5000/things/1' HTTP/1.1 200 OKcontent-type: application/jsonDate: Mon, 23 Jan 2017 12:46:46 GMTConnection: keep-aliveTransfer-Encoding: chunked {"value":"human"}
usage
Http = require('vas-http')
license
The Apache License
Copyright © 2017 Michael Williams
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.