Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.31 KB

File metadata and controls

44 lines (27 loc) · 1.31 KB

Ponse License NPM version Build Status Coverage Status

image

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

createStatic(options) - serve static content

  • options:
    • cache
    • root

send(data, params) - send data

License

MIT