Caelebs opened a new issue #3069: URL: https://github.com/apache/apisix/issues/3069
### Issue description How should I get the requested URI and request method in the code? For example, I can use `core.request.header(ctx, "Authorization") ` to get the value in the header, But I don't know how to get the requested uri and request method in lua code. uri -> /user/test method -> GET ``` 10.10.20.10 - - [17/Dec/2020:21:03:55 +0800] 10.10.10.250:9080 "GET /user/test HTTP/1.1" 200 7452 0.003 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36" 10.10.16.248:32244 200 0.003 ``` ### Environment * apisix version (cmd: `apisix version`): `apisix v2.1` * OS: `CentOS Linux release 7.6.1810 (Core)` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
