1.1.1 • Published 7 years ago

@rill/etag v1.1.1

Weekly downloads
13
License
MIT
Repository
github
Last release
7 years ago

Installation

npm install @rill/etag

Example

const rill = require('rill')
const app = rill()
const fresh = require('@rill/fresh')
const etag = require('@rill/etag')

// ETag works together with fresh
app.use(fresh())
app.use(etag())

// Response will be sent with ETag header.
app.use((ctx, next) => {
  this.body = 'Hello World'
})

app.listen(3000)

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago