2.0.0 • Published 3 years ago
@tinyhttp/ping v2.0.0
@tinyhttp/ping
Inspired by koa-response-time
Response time checker for tinyhttp. Sets X-Response-Time
header using process.hrtime()
Install
pnpm i @tinyhttp/ping
API
import { ping } from '@tinyhttp/ping'
Options
round
Round the ping time. Default is set to true.
Example
import { ping } from '@tinyhttp/ping'
import { createServer } from 'http'
import path from 'path'
createServer(async (req, res) => {
ping()(req, res)
res.end('Hello World')
}).listen(3000)
2.0.0
3 years ago
1.3.0
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.2
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.5.2
3 years ago
0.5.1
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago