MCPcopy Index your code
hub / github.com/labstack/echo / isValidProto

Function isValidProto

context.go:199–209  ·  view source on GitHub ↗
(proto string)

Source from the content-addressed store, hash-verified

197}
198
199func isValidProto(proto string) bool {
200 if proto == "" {
201 return false
202 }
203 for _, p := range []string{"http", "https", "ws", "wss"} {
204 if strings.EqualFold(proto, p) {
205 return true
206 }
207 }
208 return false
209}
210
211// Scheme returns the HTTP protocol scheme, `http` or `https`.
212func (c *Context) Scheme() string {

Callers 1

SchemeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…