Servie Send
Create a HTTP response to send using Servie - a thin layer for creating a
Response
object with cache headers.
Installation
npm install servie-send --save
Usage
;
Options
status?
Change the default response status code (200).headers?
Define the headers to use for the response.contentType?
Define content length for the response.contentLength?
Define content length for the response.mtime?
Define the modificationDate
for the response.etag?
Define an ETag for the response (e.g. pre-computed withentityTag()
ortrue
for on-demand).
TypeScript
This project is written using TypeScript and publishes the definitions directly to NPM.
License
Apache 2.0