mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-14 07:30:25 +08:00
将请求的一些方法改为可exported,方便以后扩展
This commit is contained in:
@@ -200,6 +200,12 @@ func (this *HTTPRequest) doRoot() (isBreak bool) {
|
||||
respHeader.Set("ETag", eTag)
|
||||
}
|
||||
|
||||
// 调用回调
|
||||
this.onRequest()
|
||||
if this.writer.isFinished {
|
||||
return
|
||||
}
|
||||
|
||||
// 支持 If-None-Match
|
||||
if this.requestHeader("If-None-Match") == eTag {
|
||||
// 自定义Header
|
||||
|
||||
Reference in New Issue
Block a user