⚡️ Express inspired web framework written in Go
233 matches across 5 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | res.go | 144 | h := r.c.app.toString(r.c.fasthttp.Response.Header.Peek(field)) |
| CRITICAL | res.go | 335 | r.c.fasthttp.Response.Header.SetCookie(fcookie) |
| CRITICAL | res.go | 394 | r.c.fasthttp.Response.Header.SetContentType(handlers[0].MediaType) |
| CRITICAL | res.go | 422 | r.c.fasthttp.Response.Header.SetContentType(h.MediaType) |
| CRITICAL | res.go | 478 | return defaultString(r.c.app.toString(r.c.fasthttp.Response.Header.Peek(key)), defaultValue) |
| CRITICAL | res.go | 582 | r.c.fasthttp.Response.Header.SetContentType(MIMETextJavaScriptCharsetUTF8) |
| CRITICAL | res.go | 769 | r.c.fasthttp.Response.Header.Add("Link", h) |
| CRITICAL | res.go | 1005 | r.c.fasthttp.Response.Header.Set(key, val) |
| CRITICAL | res.go | 1009 | r.c.fasthttp.Response.Header.SetCanonical(utils.UnsafeBytes(key), utils.UnsafeBytes(val)) |
| CRITICAL | res.go | 1038 | r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=" + charset[0]) |
| CRITICAL | res.go | 1042 | r.c.fasthttp.Response.Header.SetContentType(mimeType + "; charset=utf-8") |
| CRITICAL | res.go | 1044 | r.c.fasthttp.Response.Header.SetContentType(mimeType) |
| CRITICAL | req.go | 52 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAccept)) |
| CRITICAL | req.go | 58 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptCharset)) |
| CRITICAL | req.go | 64 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptEncoding)) |
| CRITICAL | req.go | 71 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage)) |
| CRITICAL | req.go | 78 | header := joinHeaderValues(r.c.fasthttp.Request.Header.PeekAll(HeaderAcceptLanguage)) |
| CRITICAL | req.go | 345 | return defaultString(r.c.app.toString(r.c.fasthttp.Request.Header.Cookie(key)), defaultValue) |
| CRITICAL | req.go | 689 | ct := r.c.app.toString(r.c.fasthttp.Request.Header.ContentType()) |
| CRITICAL | req.go | 768 | return r.c.app.toString(r.c.fasthttp.Request.Header.RequestURI()) |
| CRITICAL | req.go | 866 | return r.c.app.toString(r.c.fasthttp.Request.Header.Protocol()) |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | req_interface_gen.go | 21 | AcceptsLanguages(offers ...string) string |
| LOW | req_interface_gen.go | 41 | // RequestCtx returns *fasthttp.RequestCtx that carries a deadline |
| LOW | req_interface_gen.go | 61 | // If a default value is given, it will return that value if the form value does not exist. |
| LOW | req_interface_gen.go | 81 | // Make copies or use the Immutable setting instead. |
| LOW | req_interface_gen.go | 101 | // Please use Config.TrustProxy to prevent header spoofing if your app is behind a proxy. |
| LOW | req_interface_gen.go | 121 | // RequestHandler. Additionally, Close method is called on each value |
| LOW | req_interface_gen.go | 141 | // Scheme contains the request protocol string: http or https for TLS requests. |
| LOW | req_interface_gen.go | 161 | // Queries()["field2"] == "value3" |
| LOW | register.go | 41 | // }) |
| LOW | domain.go | 221 | // DomainParam returns the value of a domain parameter from the context. |
| LOW | domain.go | 241 | |
| LOW | color.go | 1 | // ⚡️ Fiber is an Express inspired web framework written in Go with ☕️ |
| LOW | color.go | 21 | // Optional. Default: "\u001b[92m" |
| LOW | res.go | 21 | "github.com/gofiber/utils/v2" |
| LOW | res.go | 41 | |
| LOW | ctx_interface_gen.go | 21 | // BaseURL returns (protocol + host + base path). |
| LOW | ctx_interface_gen.go | 41 | // The close of the Done channel may happen asynchronously, |
| LOW | ctx_interface_gen.go | 61 | Response() *fasthttp.Response |
| LOW | ctx_interface_gen.go | 81 | // Returned value is only valid within the handler. Do not store any references. |
| LOW | ctx_interface_gen.go | 101 | RequestID() string |
| LOW | ctx_interface_gen.go | 121 | Matched() bool |
| LOW | ctx_interface_gen.go | 141 | Status(status int) Ctx |
| LOW | ctx_interface_gen.go | 161 | // returned to the pool when ReleaseCtx is called. |
| LOW | ctx_interface_gen.go | 221 | AcceptsJSON() bool |
| LOW | ctx_interface_gen.go | 241 | // Returned value is only valid within the handler. Do not store any references. |
| LOW | ctx_interface_gen.go | 261 | FormFile(key string) (*multipart.FileHeader, error) |
| LOW | ctx_interface_gen.go | 281 | // while `Hostname` refers specifically to the name assigned to a device on a network, excluding any port information. |
| LOW | ctx_interface_gen.go | 301 | // extractIPFromHeader will attempt to pull the real client IP from the given header when IP validation is enabled. |
| LOW | ctx_interface_gen.go | 321 | // Otherwise, it updates the context's method and returns the overridden method as a string. |
| LOW | ctx_interface_gen.go | 341 | // Make copies or use the Immutable setting to use the value outside the Handler. |
| LOW | ctx_interface_gen.go | 361 | // Queries()["filters.category.name"] == "Technology" |
| LOW | ctx_interface_gen.go | 381 | getBody() []byte |
| LOW | ctx_interface_gen.go | 401 | // that default handler is called. If no format is found and no default is given, |
| LOW | ctx_interface_gen.go | 421 | // Content-Type header equal to ctype. If ctype is not given, |
| LOW | ctx_interface_gen.go | 441 | // Nil receivers and missing routes return ErrNotFound to match Route.URL semantics. |
| LOW | ctx_interface_gen.go | 461 | SendEarlyHints(hints []string) error |
| LOW | ctx_interface_gen.go | 481 | Type(extension string, charset ...string) Ctx |
| LOW | group.go | 41 | if err := grp.app.hooks.executeOnGroupNameHooks(*grp); err != nil { |
| LOW | group.go | 201 | } |
| LOW | app.go | 41 | |
| LOW | app.go | 181 | // When set to true, enables case-sensitive routing. |
| LOW | app.go | 201 | |
| LOW | app.go | 221 | |
| LOW | app.go | 241 | |
| LOW | app.go | 261 | WriteTimeout time.Duration `json:"write_timeout"` |
| LOW | app.go | 281 | |
| LOW | app.go | 301 | // Default: false |
| LOW | app.go | 321 | // |
| LOW | app.go | 341 | |
| LOW | app.go | 361 | // Server pre parses multipart form data by default. |
| LOW | app.go | 381 | JSONEncoder utils.JSONMarshal `json:"-"` |
| LOW | app.go | 401 | // Default: binder.UnimplementedMsgpackUnmarshal |
| LOW | app.go | 421 | // Allowing for flexibility in using another XML library for encoding |
| LOW | app.go | 441 | // 1. c.Scheme() get value from X-Forwarded-Proto, X-Forwarded-Protocol, X-Forwarded-Ssl or X-Url-Scheme header |
| LOW | app.go | 461 | TrustProxyConfig TrustProxyConfig `json:"trust_proxy_config"` |
| LOW | app.go | 481 | // RequestMethods provides customizability for HTTP methods. You can add/remove methods as you wish. |
| LOW | app.go | 501 | ServicesStartupContextProvider func() context.Context |
| LOW | app.go | 521 | // }) |
| LOW | app.go | 541 | // |
| LOW | app.go | 621 | c.Set(HeaderContentType, MIMETextPlainCharsetUTF8) |
| 120 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | bind_test.go | 656 | c.Request().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 685 | c.Request().Header.Add("Name", "Jane Doe") |
| LOW | bind_test.go | 698 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten |
| LOW | bind_test.go | 727 | c.Request().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 914 | c.Response().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 943 | c.Response().Header.Add("Name", "Jane Doe") |
| LOW | bind_test.go | 956 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten |
| LOW | bind_test.go | 985 | c.Response().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 1146 | c.Request().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 1167 | c.Request().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 1194 | c.Response().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 1215 | c.Response().Header.Add("Name", "John Doe") |
| LOW | bind_test.go | 1867 | c.Request().Header.SetCookie("Name", "John Doe") |
| LOW | bind_test.go | 1896 | c.Request().Header.SetCookie("Name", "Jane Doe") |
| LOW | bind_test.go | 1909 | require.Equal(t, "Jane Doe", h2.Name) // check value get overwritten |
| LOW | bind_test.go | 1940 | c.Request().Header.SetCookie("Name", "John Doe") |
| LOW | bind_test.go | 2127 | c.Request().Header.SetCookie("Name", "John Doe") |
| LOW | bind_test.go | 2150 | c.Request().Header.SetCookie("Name", "John Doe") |
| LOW | docs/middleware/session.md | 161 | if email == "admin@example.com" && password == "secret" { |
| LOW | docs/middleware/session.md | 741 | if email != "user@example.com" || password != "password" { |
| LOW | docs/middleware/session.md | 774 | return email == "user@example.com" && password == "password" |
| LOW | docs/api/ctx.md | 2036 | user := User{"John Doe"} |
| LOW | docs/api/ctx.md | 2040 | // => {"Name":"John Doe"} |
| LOW | docs/client/request.md | 452 | Name: "John Doe", |
| LOW | docs/client/request.md | 475 | "Name": "John Doe" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | redirect_test.go | 599 | // Step 1: Make the initial request to the source route |
| LOW | redirect_test.go | 617 | // Step 2: Make the second request to the target route with the cookie |
| LOW | redirect_test.go | 665 | // Step 1: Make the initial request |
| LOW | redirect_test.go | 682 | // Step 2: Make the second request with the cookie |
| LOW | helpers.go | 320 | // Step 2: first subtag must match (or be '*') |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | req.go | 925 | // Example usage: |
| LOW | extractors/extractors.go | 9 | // Example usage: |