MCPcopy
hub / github.com/tinyhttp/tinyhttp / RequestWithBotDetector

Interface RequestWithBotDetector

packages/bot-detector/src/index.ts:5–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import detectBot from 'isbot'
4
5export interface RequestWithBotDetector extends Request {
6 isBot: boolean
7 botName: string
8}
9
10export function botDetector(): Handler<RequestWithBotDetector, Response> {
11 return (req, _, next) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected