mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-28 21:05:48 +08:00
特殊页面可以直接使用HTML
This commit is contained in:
23
pkg/serverconfigs/shared/body_type.go
Normal file
23
pkg/serverconfigs/shared/body_type.go
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package shared
|
||||
|
||||
type BodyType = string
|
||||
|
||||
const (
|
||||
BodyTypeURL BodyType = "url"
|
||||
BodyTypeHTML BodyType = "html"
|
||||
)
|
||||
|
||||
func FindAllBodyTypes() []*Definition {
|
||||
return []*Definition{
|
||||
{
|
||||
Name: "读取URL",
|
||||
Code: BodyTypeURL,
|
||||
},
|
||||
{
|
||||
Name: "HTML",
|
||||
Code: BodyTypeHTML,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user