isSecure returns true when the request arrived over HTTPS, either directly or via a reverse proxy that sets X-Forwarded-Proto.
(c echo.Context)
| 136 | // isSecure returns true when the request arrived over HTTPS, either directly |
| 137 | // or via a reverse proxy that sets X-Forwarded-Proto. |
| 138 | func isSecure(c echo.Context) bool { |
| 139 | return c.Scheme() == "https" |
| 140 | } |
| 141 | |
| 142 | // SetSessionCookie sets the session cookie on the response. |
| 143 | func SetSessionCookie(c echo.Context, sessionID string) { |
no outgoing calls
no test coverage detected