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

This commit is contained in:
刘祥超
2021-12-14 21:26:32 +08:00
parent 8b5a21e593
commit a226eee6ef
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
}
})