云原生训练营 20210915- 作业 1
题目
接收客户端 request,并将 request 中带的 header 写入 response header
读取当前系统的环境变量中的 VERSION 配置,并写入 response header
Server 端记录访问日志包括客户端 IP,HTTP 返回码,输出到 server 端的标准输出
当访问 localhost/healthz 时,应返回 200
解答
复制代码
运行结果
记录客户端地址及返回码

访问 healthz,返回 200

响应中设置请求的头

版权声明: 本文为 InfoQ 作者【莫问】的原创文章。
原文链接:【http://xie.infoq.cn/article/ccb2e74446c9e12a47ba87c1e】。未经作者许可,禁止转载。
评论