Function for handling middleware.
The shared state across the connection lifecycle.
Function to continue the processing chain.
Function for handling middleware.