Module for work with requests and responses


Keywords
request, response, send, parse, cloudcmd, javascript, nodejs
License
MIT
Install
npm install ponse@7.0.0

Documentation

Ponse

Module for work with requests and responses

Install

npm i ponse --save

Api

isGZIP(request) check is gzip supported

  • http request

getPathName(request || string) - get pathname

  • http request

getQuery(request || string) - get query

  • http request

static(options) - serve static content

  • options:
    • cache
    • root

send(data, params) - send data

License

MIT