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