# Functions
AuthenticateMiddleware authenticates the request by query upstream TiDB.
CheckServerReadyMiddleware checks if the server is ready.
ErrorHandleMiddleware puts the error into response.
ForwardToOwnerMiddleware forward a request to controller if current server is not controller, or handle it locally.
LogMiddleware logs the api requests.
# Constants
ClientVersionHeader is the header name of client version.