internal/

directory
v3.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT

Directories

Path Synopsis
Package appconfig hands request hot paths the few Config bits they read on every call, without the copy App.Config returns by value.
Package appconfig hands request hot paths the few Config bits they read on every call, without the copy App.Config returns by value.
Package apptest provides the request/response plumbing that nearly every Fiber test repeats: sending a request through an app, checking the transport error, the status and the body, borrowing a request context from an app, and waiting on a channel with a deadline.
Package apptest provides the request/response plumbing that nearly every Fiber test repeats: sending a request through an app, checking the transport error, the status and the body, borrowing a request context from an app, and waiting on a channel with a deadline.
Package bodystream buffers a streamed request body within a size limit.
Package bodystream buffers a streamed request body within a size limit.
Package bytepolicy defines which bytes the control-character checks of BasicAuth, request IDs and quoted strings reject.
Package bytepolicy defines which bytes the control-character checks of BasicAuth, request IDs and quoted strings reject.
Package byterange adds the Range and If-Range rules (RFC 9110 §13.1.5, §14.2) that fasthttp's file server lacks: it takes only a lower-case "bytes" unit, applies Range to HEAD and matches If-Range by date alone.
Package byterange adds the Range and If-Range rules (RFC 9110 §13.1.5, §14.2) that fasthttp's file server lacks: it takes only a lower-case "bytes" unit, applies Range to HEAD and matches If-Range by date alone.
Package clocktest lets tests wait on the cached, second-granularity clock that fiber's memory storages and rate-limit windows are measured against, and provides a manually advanced clock for code that takes its time source.
Package clocktest lets tests wait on the cached, second-granularity clock that fiber's memory storages and rate-limit windows are measured against, and provides a manually advanced clock for code that takes its time source.
Package cookie centralizes cookie policy shared by Fiber core and middleware.
Package cookie centralizes cookie policy shared by Fiber core and middleware.
Package crosshost names the request headers that must not survive a redirect to a host other than the one they were sent to.
Package crosshost names the request headers that must not survive a redirect to a host other than the one they were sent to.
Package ctxlocal stores request locals without the allocation a variadic Locals call through the Ctx interface costs.
Package ctxlocal stores request locals without the allocation a variadic Locals call through the Ctx interface costs.
Package errorreplay marks the middleware run Fiber replays for a request the server refused while reading it, so middleware that stores responses can stay out.
Package errorreplay marks the middleware run Fiber replays for a request the server refused while reading it, so middleware that stores responses can stay out.
Package etag parses and compares HTTP entity tags (RFC 9110 Section 8.8.3).
Package etag parses and compares HTTP entity tags (RFC 9110 Section 8.8.3).
Package fieldname reads and removes HTTP header fields by name case-insensitively (RFC 9110 §5.1).
Package fieldname reads and removes HTTP header fields by name case-insensitively (RFC 9110 §5.1).
Package fspath holds the checks that stand between a request and the fasthttp file handler, for the static middleware and SendFile.
Package fspath holds the checks that stand between a request and the fasthttp file handler, for the static middleware and SendFile.
Package headerlist walks the comma-separated list values that RFC 9110 Section 5.6.1 defines, and joins the field lines that Section 5.3 says are equivalent to one.
Package headerlist walks the comma-separated list values that RFC 9110 Section 5.6.1 defines, and joins the field lines that Section 5.3 says are equivalent to one.
Package headerlookup answers, for a caller holding a fiber.Ctx, the two questions the byte-exact header API cannot: whether the stored field names are canonical, and what a named request header holds if they are not.
Package headerlookup answers, for a caller holding a fiber.Ctx, the two questions the byte-exact header API cannot: whether the stored field names are canonical, and what a named request header holds if they are not.
Package hostname splits host:port values and converts IDN host names.
Package hostname splits host:port values and converts IDN host names.
Package ipv6host writes IPv6 hosts in the one form browsers serialize them in, so that every spelling of an address (RFC 4291 Section 2.2) compares equal.
Package ipv6host writes IPv6 hosts in the one form browsers serialize them in, so that every spelling of an address (RFC 4291 Section 2.2) compares equal.
Package loggertest provides shared helpers for the middleware ctx-logger integration tests.
Package loggertest provides shared helpers for the middleware ctx-logger integration tests.
Package mediatype parses media types and their parameters (RFC 9110 Section 8.3.1), and canonicalizes the case-insensitive parts of a request's Content-Type, so the case-sensitive parsers downstream — fasthttp's form and multipart readers above all — see the value they expect.
Package mediatype parses media types and their parameters (RFC 9110 Section 8.3.1), and canonicalizes the case-insensitive parts of a request's Content-Type, so the case-sensitive parsers downstream — fasthttp's form and multipart readers above all — see the value they expect.
Package memory provides a high-performance in-memory storage that can store any type without encoding overhead.
Package memory provides a high-performance in-memory storage that can store any type without encoding overhead.
Package origin validates and matches the serialized origins that the CORS and CSRF middleware compare against their configured allow lists.
Package origin validates and matches the serialized origins that the CORS and CSRF middleware compare against their configured allow lists.
Package paramdelim holds the byte set that ends a ":name" placeholder in a path.
Package paramdelim holds the byte set that ends a ":name" placeholder in a path.
Package quotedstring encodes values placed inside HTTP quoted strings.
Package quotedstring encodes values placed inside HTTP quoted strings.
Package redact provides common helpers for masking sensitive values in log output.
Package redact provides common helpers for masking sensitive values in log output.
Package redirectbody turns a request into one without a body, for the hop a redirect sends it on as a GET: the client and the proxy follow redirects each with a loop of their own, and what goes with the body is decided here for both.
Package redirectbody turns a request into one without a body, for the hop a redirect sends it on as a GET: the client and the proxy follow redirects each with a loop of their own, and what goes with the body is decided here for both.
Package rulematch provides pattern compilation and capture substitution shared by redirect and rewrite rules.
Package rulematch provides pattern compilation and capture substitution shared by redirect and rewrite rules.
Package schemehost compares the scheme and host of two URLs for same-origin checks.
Package schemehost compares the scheme and host of two URLs for same-origin checks.
Package sizedstream buffers a response body stream that declares its length.
Package sizedstream buffers a response body stream that declares its length.
storage
memory
Package memory Is a copy of the storage memory from the external storage packet as a purpose to test the behavior in the unittests when using a storages from these packets
Package memory Is a copy of the storage memory from the external storage packet as a purpose to test the behavior in the unittests when using a storages from these packets
Package storagetest provides the fiber.Storage fakes that the tests of the root package and of the storage-backed middleware keep needing: a map-backed storage with a per-operation error table and a log of the calls it served, and a storage that always fails.
Package storagetest provides the fiber.Storage fakes that the tests of the root package and of the storage-backed middleware keep needing: a map-backed storage with a per-operation error table and a log of the calls it served, and a storage that always fails.
Package testconventions holds the test that enforces the conventions of the repository's own tests: the shared helpers in internal/apptest, internal/storagetest and internal/clocktest, parallel tests and the compact layout described in AGENTS.md.
Package testconventions holds the test that enforces the conventions of the repository's own tests: the shared helpers in internal/apptest, internal/storagetest and internal/clocktest, parallel tests and the compact layout described in AGENTS.md.
Package urlnorm applies the parts of the WHATWG URL parser's input handling a guard must apply before judging a URL Fiber is about to emit.
Package urlnorm applies the parts of the WHATWG URL parser's input handling a guard must apply before judging a URL Fiber is about to emit.
Package wiretarget spells the path the router matched the way a request line carries it, for middleware that hands the request on to something that reads request lines: a proxy upstream, a net/http handler.
Package wiretarget spells the path the router matched the way a request line carries it, for middleware that hands the request on to something that reads request lines: a proxy upstream, a net/http handler.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL