Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
This report presents the forensic synthetic code analysis of valyala/fasthttp, a Go project with 23,414 GitHub stars. SynthScan v2.0 examined 57,243 lines of code across 162 source files, recording 197 pattern matches distributed across 3 syntactic categories. The overall adjusted score of 3.0 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 197 distinct pattern matches across 3 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | header.go | 401 | h.SetContentTypeBytes(h.bufV) | COMMENT |
| LOW | header.go | 421 | func (h *header) SetTrailer(trailer string) error { | COMMENT |
| LOW | header.go | 441 | // Return ErrBadTrailer if contain any forbidden trailers. | COMMENT |
| LOW | header.go | 481 | ErrNeedMore = errors.New("fasthttp: need more data: cannot find trailing lf") | COMMENT |
| LOW | header.go | 901 | COMMENT | |
| LOW | header.go | 921 | h.disableSpecialHeader = false | COMMENT |
| LOW | header.go | 941 | return orig | COMMENT |
| LOW | header.go | 1141 | COMMENT | |
| LOW | header.go | 1181 | // | COMMENT |
| LOW | header.go | 1281 | // Deprecated: Use All instead. | COMMENT |
| LOW | header.go | 1521 | // | COMMENT |
| LOW | header.go | 1541 | // and Date headers can only be set once and will overwrite the previous value, | COMMENT |
| LOW | header.go | 1561 | func (h *ResponseHeader) AddBytesV(key string, value []byte) { | COMMENT |
| LOW | header.go | 1581 | COMMENT | |
| LOW | header.go | 1601 | // Please note that the Set-Cookie header will not clear previous cookies, | COMMENT |
| LOW | header.go | 1641 | COMMENT | |
| LOW | header.go | 1681 | func (h *RequestHeader) SetCookieBytesKV(key, value []byte) { | COMMENT |
| LOW | header.go | 1701 | c := AcquireCookie() | COMMENT |
| LOW | header.go | 1761 | } | COMMENT |
| LOW | header.go | 1781 | func (h *RequestHeader) AddBytesK(key []byte, value string) { | COMMENT |
| LOW | header.go | 1801 | // the Content-Type, Content-Length, Connection, Transfer-Encoding, | COMMENT |
| LOW | header.go | 1821 | // If the header is set as a Trailer (forbidden trailers will not be set, see SetTrailer for more details), | COMMENT |
| LOW | header.go | 1841 | h.SetBytesKV(key, h.bufV) | COMMENT |
| LOW | header.go | 1861 | // delete cookies before calling in order to reset cookies. | COMMENT |
| LOW | server.go | 21 | COMMENT | |
| LOW | server.go | 161 | // By default standard logger from log package is used. | COMMENT |
| LOW | server.go | 181 | // HeaderReceived is called after receiving the header. | COMMENT |
| LOW | server.go | 201 | // ExpectHandler provides more control than ContinueHandler by allowing | COMMENT |
| LOW | server.go | 221 | COMMENT | |
| LOW | server.go | 261 | // | COMMENT |
| LOW | server.go | 281 | // the full request including body. The connection's read | COMMENT |
| LOW | server.go | 301 | // | COMMENT |
| LOW | server.go | 321 | MaxIdleWorkerDuration time.Duration | COMMENT |
| LOW | server.go | 361 | // | COMMENT |
| LOW | server.go | 381 | // Server accepts all the requests by default. | COMMENT |
| LOW | server.go | 401 | COMMENT | |
| LOW | server.go | 421 | // Examples: | COMMENT |
| LOW | server.go | 441 | // set to true, the Date will not be present. | COMMENT |
| LOW | server.go | 461 | // StreamRequestBody enables request body streaming, | COMMENT |
| LOW | server.go | 521 | // ReadTimeout is the maximum duration for reading the entire | COMMENT |
| LOW | server.go | 541 | // CompressHandlerLevel returns RequestHandler that transparently compresses | COMMENT |
| LOW | server.go | 561 | ctx.Response.zstdBody(level) | COMMENT |
| LOW | server.go | 601 | // | COMMENT |
| LOW | server.go | 641 | // | COMMENT |
| LOW | server.go | 721 | // The connection c must not be used after returning from the handler, if KeepHijackedConns is disabled. | COMMENT |
| LOW | server.go | 741 | // Server limits such as Concurrency, ReadTimeout, WriteTimeout, etc. | COMMENT |
| LOW | server.go | 761 | ctx.hijackNoResponse = noResponse | COMMENT |
| LOW | server.go | 841 | ConnectionState() tls.ConnectionState | COMMENT |
| LOW | server.go | 1081 | // See also PostArgs, FormValue and FormFile. | COMMENT |
| LOW | server.go | 1101 | // Returns ErrNoMultipartForm if request's content-type | COMMENT |
| LOW | server.go | 1121 | // multipart body size to maxBodySize bytes. | COMMENT |
| LOW | server.go | 1221 | // - POST or PUT body. | COMMENT |
| LOW | server.go | 1421 | ctx.SetContentType(contentType) | COMMENT |
| LOW | server.go | 1441 | // strLocation = []byte("Location") // Put this with your top level var () declarations. | COMMENT |
| LOW | server.go | 1461 | // - StatusPermanentRedirect (308) | COMMENT |
| LOW | server.go | 1501 | ctx.Response.SetBodyString(body) | COMMENT |
| LOW | server.go | 1521 | // WARNING: do not pass any user supplied paths to this function! | COMMENT |
| LOW | server.go | 1541 | ServeFileLiteral(ctx, path) | COMMENT |
| LOW | server.go | 1601 | // PostBody returns POST request body. | COMMENT |
| LOW | server.go | 1621 | } | COMMENT |
| 127 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | fasthttpproxy/http.go | 13 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/http.go | 26 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/http.go | 40 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/http.go | 53 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/proxy_env.go | 17 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/proxy_env.go | 30 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/socks5.go | 11 | // Example usage: | COMMENT |
| LOW | fasthttpproxy/socks5.go | 25 | // Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tcplisten/tcplisten_other.go | 10 | // TODO: implement SO_ACCEPTFILTER:dataready here | COMMENT |
| LOW | tcplisten/tcplisten_other.go | 15 | // TODO: implement TCP_FASTOPEN when it will be ready | COMMENT |