Create an Express/Connect-compatible middleware that attaches a
PeerIdentifyContext to req.peerContext on every request.
Setup
// Register ip-devicer and tls-devicer middleware first so their enriched // fields (req.resolvedIp, req.tlsProfile) are available here. app.use(createIpMiddleware()); app.use(createTlsMiddleware()); app.use(createPeerMiddleware());
Create an Express/Connect-compatible middleware that attaches a
PeerIdentifyContexttoreq.peerContexton every request.Setup