> For the complete documentation index, see [llms.txt](https://denglj.gitbook.io/essential-go/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware.md).

# 51 HTTP服务中间件

- [一般处理(handler)函数](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware/normal-handler-function.md)
- [中间件里计算handler函数的耗时](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware/middleware-calculate-time-required-for-handlerfunc-to-execute.md)
- [CORS中间件](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware/cors-middleware.md)
- [Auth中间件](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware/auth-middleware.md)
- [恢复handler以防止服务端崩溃](https://denglj.gitbook.io/essential-go/common-standard-libraries/51-http-server-middleware/recovery-handler-to-prevent-server-from-crashing.md)
