Skip to content

coderaiser/ponse

Repository files navigation

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