http :8000/mock
HTTP/1.1 401 Unauthorized
Connection: keep-alive
Content-Length: 30
Content-Type: application/json; charset=utf-8
Date: Mon, 09 Nov 2020 07:08:28 GMT
Server: kong/2.1.0
WWW-Authenticate: Basic realm="kong"
X-Kong-Response-Latency: 34
{
"message": "Unauthorized"
}
参考
https://github.com/Kong/kong/tree/master/kong/plugins/basic-auth