类型 WebScheme
API 文档由 Go 源码生成,内容为英文。
type WebScheme struct {
Name string
// Serve answers one request: the path after the host, without a query. ok false is a 404.
Serve func(path string) (mime string, data []byte, ok bool)
}WebScheme serves a custom URL scheme.