Module for work with requests and responses
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin fix(ponse) , -> ; Jul 19, 2018
json fix(ext) proper mime type for eot Jun 7, 2016
lib fix(ponse) static: related path Jul 19, 2018
test fix(ponse) static: related path Jul 19, 2018
.eslintrc
.eslintrc.test fix(ponse) path traversal Jul 19, 2018
.gitignore fix(ponse) path traversal Jul 19, 2018
.npmignore fix(ponse) path traversal Jul 19, 2018
ChangeLog chore(package) v2.0.3 Jul 19, 2018
LICENSE docs(license) 2018 May 24, 2018
README.md docs(readme) add "\n" Nov 24, 2016
package.json chore(package) v2.0.3 Jul 19, 2018

README.md

Ponse

Module for work with requests and responses

Install

npm i ponse --save

Api

isGZIP(request) check is gzip supported

  • http request

getPathName(request) - get pathname

  • http request

getQuery(request) - get query

  • http request

static(directory, options) - serve static content

  • directory path
  • options:
    • cache

License

MIT