RequestID 中间件
RequestID 中间件会为Response Header http信息头添加UUID,header key: “X-Request-ID”
YoyoGo.NewWebHostBuilder().
UseConfiguration(configuration).
Configure(func(app *YoyoGo.WebApplicationBuilder) {
app.UseMiddleware(Middleware.NewRequestID())
}
}
本文档使用 BookStack 构建