Skip to content

basalt / http/src / PreHook

Type Alias: PreHook ​

> PreHook = (info) => void | Promise<void>

Defined in: http/src/server.ts:5

Middleware before routing. If it sends the reply, routing is skipped.

Parameters ​

info ​

reply ​

HttpReply

request ​

HttpRequest

Returns ​

void | Promise<void>

Released under the MIT License.