Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
183 matches across 2 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | header.go | 401 | h.SetContentTypeBytes(h.bufV) |
| LOW | header.go | 421 | func (h *header) SetTrailer(trailer string) error { |
| LOW | header.go | 441 | // Return ErrBadTrailer if contain any forbidden trailers. |
| LOW | header.go | 481 | ErrNeedMore = errors.New("need more data: cannot find trailing lf") |
| LOW | header.go | 921 | // This is suggested and enabled by default. |
| LOW | header.go | 941 | // The previous setting is returned. |
| LOW | header.go | 1181 | // |
| LOW | header.go | 1281 | // Copy key and/or value contents before returning if you need retaining them. |
| LOW | header.go | 1521 | } |
| LOW | header.go | 1541 | // Use SetBytesK for setting a single header for the given key. |
| LOW | header.go | 1561 | // |
| LOW | header.go | 1601 | |
| LOW | header.go | 1621 | // If the header is set as a Trailer (forbidden trailers will not be set, see SetTrailer for more details), |
| LOW | header.go | 1681 | } |
| LOW | header.go | 1721 | // ReleaseCookie(c) |
| LOW | header.go | 1761 | func (h *RequestHeader) DelAllCookies() { |
| LOW | header.go | 1781 | // |
| LOW | header.go | 1801 | // Multiple headers with the same key may be added with this function. |
| LOW | header.go | 1821 | // Please note that the Cookie header will not clear previous cookies, |
| LOW | header.go | 1861 | // SetBytesKV sets the given 'key: value' header. |
| LOW | header.go | 3481 | // - coNTENT-TYPe -> Content-Type |
| LOW | server.go | 21 | |
| LOW | server.go | 161 | // By default standard logger from log package is used. |
| LOW | server.go | 181 | // HeaderReceived is called after receiving the header. |
| LOW | server.go | 201 | // ExpectHandler provides more control than ContinueHandler by allowing |
| LOW | server.go | 221 | |
| LOW | server.go | 261 | // |
| LOW | server.go | 281 | // the full request including body. The connection's read |
| LOW | server.go | 301 | // |
| LOW | server.go | 321 | MaxIdleWorkerDuration time.Duration |
| LOW | server.go | 361 | // |
| LOW | server.go | 381 | // Server accepts all the requests by default. |
| LOW | server.go | 401 | |
| LOW | server.go | 421 | // Examples: |
| LOW | server.go | 441 | // set to true, the Date will not be present. |
| LOW | server.go | 461 | // StreamRequestBody enables request body streaming, |
| LOW | server.go | 521 | // ReadTimeout is the maximum duration for reading the entire |
| LOW | server.go | 541 | // CompressHandlerLevel returns RequestHandler that transparently compresses |
| LOW | server.go | 561 | ctx.Response.zstdBody(level) |
| LOW | server.go | 601 | // |
| LOW | server.go | 641 | // |
| LOW | server.go | 721 | // The connection c must not be used after returning from the handler, if KeepHijackedConns is disabled. |
| LOW | server.go | 741 | // Server limits such as Concurrency, ReadTimeout, WriteTimeout, etc. |
| LOW | server.go | 761 | ctx.hijackNoResponse = noResponse |
| LOW | server.go | 841 | ConnectionState() tls.ConnectionState |
| LOW | server.go | 1081 | // See also PostArgs, FormValue and FormFile. |
| LOW | server.go | 1101 | // Returns ErrNoMultipartForm if request's content-type |
| LOW | server.go | 1121 | // multipart body size to maxBodySize bytes. |
| LOW | server.go | 1221 | // |
| LOW | server.go | 1421 | ctx.SetBodyString(body) |
| LOW | server.go | 1441 | // ctx.Response.Header.SetCanonical(strLocation, "/relative?uri") |
| LOW | server.go | 1501 | } |
| LOW | server.go | 1521 | // WARNING: if path is based on user input users will be able to request |
| LOW | server.go | 1541 | } |
| LOW | server.go | 1601 | // |
| LOW | server.go | 1621 | |
| LOW | server.go | 1641 | |
| LOW | server.go | 1661 | } |
| LOW | server.go | 1681 | // |
| LOW | server.go | 1781 | // certFile and keyFile are paths to TLS certificate and key files. |
| 115 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | fasthttpproxy/http.go | 13 | // Example usage: |
| LOW | fasthttpproxy/http.go | 26 | // Example usage: |
| LOW | fasthttpproxy/http.go | 40 | // Example usage: |
| LOW | fasthttpproxy/http.go | 53 | // Example usage: |
| LOW | fasthttpproxy/proxy_env.go | 17 | // Example usage: |
| LOW | fasthttpproxy/proxy_env.go | 30 | // Example usage: |
| LOW | fasthttpproxy/socks5.go | 11 | // Example usage: |
| LOW | fasthttpproxy/socks5.go | 25 | // Example usage: |