mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 01:20:26 +08:00
完成两个TODO文档说明
This commit is contained in:
@@ -488,7 +488,7 @@ func (this *HTTPRequest) Format(source string) string {
|
|||||||
return this.rawURI
|
return this.rawURI
|
||||||
case "requestPath":
|
case "requestPath":
|
||||||
return this.requestPath()
|
return this.requestPath()
|
||||||
case "requestPathExtension": // TODO 需要添加到文档中
|
case "requestPathExtension":
|
||||||
return filepath.Ext(this.requestPath())
|
return filepath.Ext(this.requestPath())
|
||||||
case "requestLength":
|
case "requestLength":
|
||||||
return strconv.FormatInt(this.requestLength(), 10)
|
return strconv.FormatInt(this.requestLength(), 10)
|
||||||
@@ -583,7 +583,6 @@ func (this *HTTPRequest) Format(source string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// response.
|
// response.
|
||||||
// TODO 需要在文档中添加说明
|
|
||||||
if prefix == "response" {
|
if prefix == "response" {
|
||||||
switch suffix {
|
switch suffix {
|
||||||
case "contentType":
|
case "contentType":
|
||||||
|
|||||||
Reference in New Issue
Block a user