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

Method IsTLS

context.go:188–190  ·  view source on GitHub ↗

IsTLS returns true if HTTP connection is TLS otherwise false.

()

Source from the content-addressed store, hash-verified

186
187// IsTLS returns true if HTTP connection is TLS otherwise false.
188func (c *Context) IsTLS() bool {
189 return c.request.TLS != nil
190}
191
192// IsWebSocket returns true if HTTP connection is WebSocket otherwise false.
193func (c *Context) IsWebSocket() bool {

Callers 2

SchemeMethod · 0.95
ToMiddlewareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected