High performance, minimalist Go web framework
57 matches across 2 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | server.go | 41 | // Listener is used to start server with the custom listener. |
| LOW | router_test.go | 1021 | // Issue #1754 - router needs to backtrack multiple levels upwards in tree to find the matching route |
| LOW | router_test.go | 1041 | // +-------v-------+ +---v---------+ +-------v---+ |
| LOW | router_test.go | 1121 | // |
| LOW | router_test.go | 3341 | |
| LOW | renderer.go | 1 | // SPDX-License-Identifier: MIT |
| LOW | ip.go | 261 | return ip.String() |
| LOW | context.go | 201 | // See: |
| LOW | echo.go | 61 | ) |
| LOW | echo.go | 241 | |
| LOW | echo.go | 261 | |
| LOW | echo.go | 721 | } |
| LOW | binder_generic.go | 21 | // It can be a standard Go time layout string or one of the special Unix time layouts. |
| LOW | binder_generic.go | 41 | // TimeLayout constants for parsing Unix timestamps in different precisions. |
| LOW | binder_generic.go | 101 | // Empty String Handling: |
| LOW | binder_generic.go | 201 | |
| LOW | binder_generic.go | 281 | } |
| LOW | binder_generic.go | 341 | return result, nil |
| LOW | binder_generic.go | 361 | // - echo.BindUnmarshaler interface |
| LOW | binder_generic.go | 381 | // - int64 |
| LOW | router.go | 21 | type Router interface { |
| LOW | binder.go | 1241 | |
| LOW | binder.go | 1261 | } |
| LOW | binder.go | 1281 | // - time.Time{} (param is empty) and time.Unix(0,0) (param = "0") are not equal |
| LOW | middleware/csrf.go | 21 | // the future with this dummy token value it is OK. Although the request is safe, the template rendered by the |
| LOW | middleware/csrf.go | 41 | // - `cross-site` request originates from different site |
| LOW | middleware/cors.go | 21 | // AllowOrigins determines the value of the Access-Control-Allow-Origin |
| LOW | middleware/cors.go | 41 | // - error, if an error is returned, it is returned immediately by the handler. |
| LOW | middleware/cors.go | 61 | // accessing the resource. This is used in response to a preflight request. |
| LOW | middleware/cors.go | 81 | // Access-Control-Allow-Credentials response header. This header indicates |
| LOW | middleware/cors.go | 101 | // |
| LOW | middleware/cors.go | 121 | // Example: `https://example.com`, `http://example.com:8080`, `*` |
| LOW | middleware/request_logger.go | 21 | // HandleError: true, // forwards error to the global error handler, so it can decide appropriate status code |
| LOW | middleware/request_logger.go | 41 | // LogStatus: true, |
| LOW | middleware/request_logger.go | 61 | // if v.Error == nil { |
| LOW | middleware/request_logger.go | 81 | // LogStatus: true, |
| LOW | middleware/request_logger.go | 101 | // log := logrus.New() |
| LOW | middleware/request_logger.go | 121 | // })) |
| LOW | middleware/request_logger.go | 161 | // LogUserAgent instructs logger to extract request user agent values. |
| LOW | middleware/key_auth.go | 21 | Skipper Skipper |
| LOW | middleware/key_auth.go | 41 | // access to environment with their own auth scheme. |
| LOW | middleware/key_auth.go | 61 | // and continue. Some logic down the remaining execution chain needs to check that (public) key auth value then. |
| LOW | middleware/key_auth.go | 81 | // // Use constant-time comparison to prevent timing attacks |
| LOW | middleware/extractor.go | 61 | // `<cut-prefix>` is argument value to cut/trim prefix of the extracted value. This is useful if header |
| LOW | middleware/secure.go | 21 | |
| LOW | middleware/secure.go | 41 | // be accessed using HTTPS. This reduces your exposure to some SSL-stripping |
| LOW | middleware/secure.go | 61 | // content security policy by only reporting the violations that would |
| LOW | middleware/proxy.go | 41 | // RetryFilter defines a function used to determine if a failed request to a |
| LOW | middleware/proxy.go | 61 | // invoked after all retry attempts have been exhausted. |
| LOW | middleware/static.go | 41 | // Enable HTML5 mode by forwarding all not-found requests to root so that |
| LOW | middleware/body_dump.go | 21 | Skipper Skipper |
| LOW | middleware/compress.go | 21 | gzipScheme = "gzip" |
| LOW | middleware/basic_auth.go | 41 | // BasicAuthValidator defines a function to validate BasicAuthWithConfig credentials. |
| LOW | middleware/basic_auth.go | 61 | // if userMatch && passMatch { |
| LOW | middleware/rewrite.go | 21 | // Example: |
| LOW | echotest/context.go | 41 | // In case Request was not set the Request.Method is set to `POST` |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | renderer.go | 14 | // Example usage: |