# NextFunction interface · @imqueue/http-protect

Source: https://imqueue.org/api/http-protect/latest/http-protect.nextfunction/
Published: 2026-08-01
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/http-protect 3.0.1 — generated reference, not hand-written

The `next()` callback an express-like framework passes to a middleware.

**Signature:**

```typescript
export interface NextFunction 
```

## Remarks

The middlewares here call it with no arguments, and only for a request that passed. A rejected request is answered directly and `next` is never called, so nothing downstream runs.

