HTTP Header:实现请求方法、域名、状态码等限制,实现内容替换功能

This commit is contained in:
GoEdgeLab
2021-12-14 21:26:32 +08:00
parent 40e1b4653d
commit 7713acd969
15 changed files with 503 additions and 79 deletions

View File

@@ -0,0 +1,7 @@
Tea.context(function () {
this.shouldReplace = this.headerConfig.shouldReplace
this.statusList = []
if (this.headerConfig.status != null && this.headerConfig.status.codes != null) {
this.statusList = this.headerConfig.status.codes
}
})