Initial Dever 0.0.1
This commit is contained in:
commit
81233d098c
1479 files changed
+163782
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# 请求信息
|
||||
|
||||
读取当前 HTTP 请求的信息,客户端地址不信任转发头。
|
||||
|
||||
## dever.api.requestId
|
||||
|
||||
读取服务端为当前请求生成的标识。
|
||||
|
||||
## dever.api.method
|
||||
|
||||
读取实际请求方法。
|
||||
|
||||
## dever.api.path
|
||||
|
||||
读取不含查询参数的路径。
|
||||
|
||||
## dever.api.clientAddress
|
||||
|
||||
读取直接连接的客户端 IP,不采用 Forwarded 或 X-Forwarded-For。
|
||||
|
||||
## dever.api.header
|
||||
|
||||
读取首个非敏感请求头,缺席时返回 null。
|
||||
|
||||
## dever.api.setHeader
|
||||
|
||||
成功响应时发布,不能覆盖协议和 Cookie 字段。
|
||||
Reference in new issue
Block a user