完成两个TODO文档说明

This commit is contained in:
刘祥超
2021-06-10 11:35:20 +08:00
parent 8cba12b4b5
commit c1af8b36a4

View File

@@ -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":