Go API

Go API

Go API for github.com/gofiber/fiber/v3 across 81 packages.

github.com/gofiber/fiber/v3

github.com/gofiber/fiber/v3

Package fiber is an Express inspired web framework built on top of Fasthttp, the fastest HTTP engine for Go.

github.com/gofiber/fiber/v3

addon/retry

github.com/gofiber/fiber/v3/addon/retry

binder

github.com/gofiber/fiber/v3/binder

client

Package client exposes Fiber's HTTP client built on top of fasthttp.

github.com/gofiber/fiber/v3/client

extractors

github.com/gofiber/fiber/v3/extractors

internal/appconfig

Package appconfig hands request hot paths the few Config bits they read on every call, without the copy App.Config returns by value.

github.com/gofiber/fiber/v3/internal/appconfig

internal/apptest

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.

github.com/gofiber/fiber/v3/internal/apptest

internal/bodystream

Package bodystream buffers a streamed request body within a size limit.

github.com/gofiber/fiber/v3/internal/bodystream

internal/bytepolicy

Package bytepolicy defines which bytes the control-character checks of BasicAuth, request IDs and quoted strings reject.

github.com/gofiber/fiber/v3/internal/bytepolicy

internal/byterange

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.

github.com/gofiber/fiber/v3/internal/byterange

internal/clocktest

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.

github.com/gofiber/fiber/v3/internal/clocktest

internal/contextvalue

github.com/gofiber/fiber/v3/internal/contextvalue

internal/cookie

Package cookie centralizes cookie policy shared by Fiber core and middleware.

github.com/gofiber/fiber/v3/internal/cookie

internal/crosshost

Package crosshost names the request headers that must not survive a redirect to a host other than the one they were sent to.

github.com/gofiber/fiber/v3/internal/crosshost

internal/ctxlocal

Package ctxlocal stores request locals without the allocation a variadic Locals call through the Ctx interface costs.

github.com/gofiber/fiber/v3/internal/ctxlocal

internal/errorreplay

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.

github.com/gofiber/fiber/v3/internal/errorreplay

internal/escapedpath

Package escapedpath resolves URL references through net/url on the path as written, so an escape such as "%2F" is never decoded into a separator.

github.com/gofiber/fiber/v3/internal/escapedpath

internal/etag

Package etag parses and compares HTTP entity tags (RFC 9110 Section 8.8.3).

github.com/gofiber/fiber/v3/internal/etag

internal/fieldname

Package fieldname reads and removes HTTP header fields by name case-insensitively (RFC 9110 §5.1).

github.com/gofiber/fiber/v3/internal/fieldname

internal/fspath

Package fspath holds the checks that stand between a request and the fasthttp file handler, for the static middleware and SendFile.

github.com/gofiber/fiber/v3/internal/fspath

internal/headerlist

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.

github.com/gofiber/fiber/v3/internal/headerlist

internal/headerlookup

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.

github.com/gofiber/fiber/v3/internal/headerlookup

internal/hostname

Package hostname splits host:port values and converts IDN host names.

github.com/gofiber/fiber/v3/internal/hostname

internal/ipv6host

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.

github.com/gofiber/fiber/v3/internal/ipv6host

internal/loggertest

Package loggertest provides shared helpers for the middleware ctx-logger integration tests.

github.com/gofiber/fiber/v3/internal/loggertest

internal/logtemplate

github.com/gofiber/fiber/v3/internal/logtemplate

internal/mediatype

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.

github.com/gofiber/fiber/v3/internal/mediatype

internal/memory

Package memory provides a high-performance in-memory storage that can store any type without encoding overhead.

github.com/gofiber/fiber/v3/internal/memory

internal/nilerror

github.com/gofiber/fiber/v3/internal/nilerror

internal/origin

Package origin validates and matches the serialized origins that the CORS and CSRF middleware compare against their configured allow lists.

github.com/gofiber/fiber/v3/internal/origin

internal/paramdelim

Package paramdelim holds the byte set that ends a ":name" placeholder in a path.

github.com/gofiber/fiber/v3/internal/paramdelim

internal/personalheader

Package personalheader names the response headers that belong to the one client a response is for.

github.com/gofiber/fiber/v3/internal/personalheader

internal/quotedstring

Package quotedstring encodes values placed inside HTTP quoted strings.

github.com/gofiber/fiber/v3/internal/quotedstring

internal/redact

Package redact provides common helpers for masking sensitive values in log output.

github.com/gofiber/fiber/v3/internal/redact

internal/redirectbody

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.

github.com/gofiber/fiber/v3/internal/redirectbody

internal/requesthold

Package requesthold keeps the fasthttp.RequestCtx of a request out of reuse for as long as the net/http handler adapted for it runs.

github.com/gofiber/fiber/v3/internal/requesthold

internal/rulematch

Package rulematch provides pattern compilation and capture substitution shared by redirect and rewrite rules.

github.com/gofiber/fiber/v3/internal/rulematch

internal/schemehost

Package schemehost compares the scheme and host of two URLs for same-origin checks.

github.com/gofiber/fiber/v3/internal/schemehost

internal/sizedstream

Package sizedstream buffers a body stream within a length: the one a response declares, or a request's limit.

github.com/gofiber/fiber/v3/internal/sizedstream

internal/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

github.com/gofiber/fiber/v3/internal/storage/memory

internal/storagetest

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.

github.com/gofiber/fiber/v3/internal/storagetest

internal/testconventions

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.

github.com/gofiber/fiber/v3/internal/testconventions

internal/tlshandshake

Package tlshandshake bounds the TLS handshake of a fasthttp host client by the time its request has.

github.com/gofiber/fiber/v3/internal/tlshandshake

internal/tlstest

github.com/gofiber/fiber/v3/internal/tlstest

internal/unsent

Package unsent marks a request whose connection was closed without a response, so middleware that stores or counts responses can tell.

github.com/gofiber/fiber/v3/internal/unsent

internal/urlnorm

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.

github.com/gofiber/fiber/v3/internal/urlnorm

internal/wiretarget

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 or fasthttp handler.

github.com/gofiber/fiber/v3/internal/wiretarget

log

github.com/gofiber/fiber/v3/log

middleware/adaptor

github.com/gofiber/fiber/v3/middleware/adaptor

middleware/basicauth

github.com/gofiber/fiber/v3/middleware/basicauth

middleware/cache

Special thanks to @codemicro for moving this to fiber core Original middleware: github.com/codemicro/fiber-cache

github.com/gofiber/fiber/v3/middleware/cache

middleware/compress

github.com/gofiber/fiber/v3/middleware/compress

middleware/cors

github.com/gofiber/fiber/v3/middleware/cors

middleware/csrf

github.com/gofiber/fiber/v3/middleware/csrf

middleware/deprecation

github.com/gofiber/fiber/v3/middleware/deprecation

middleware/earlydata

github.com/gofiber/fiber/v3/middleware/earlydata

middleware/encryptcookie

github.com/gofiber/fiber/v3/middleware/encryptcookie

middleware/envvar

github.com/gofiber/fiber/v3/middleware/envvar

middleware/etag

github.com/gofiber/fiber/v3/middleware/etag

middleware/expvar

github.com/gofiber/fiber/v3/middleware/expvar

middleware/favicon

github.com/gofiber/fiber/v3/middleware/favicon

middleware/healthcheck

github.com/gofiber/fiber/v3/middleware/healthcheck

middleware/helmet

github.com/gofiber/fiber/v3/middleware/helmet

middleware/hostauthorization

github.com/gofiber/fiber/v3/middleware/hostauthorization

middleware/idempotency

github.com/gofiber/fiber/v3/middleware/idempotency

middleware/keyauth

github.com/gofiber/fiber/v3/middleware/keyauth

middleware/limiter

github.com/gofiber/fiber/v3/middleware/limiter

middleware/logger

github.com/gofiber/fiber/v3/middleware/logger

middleware/paginate

github.com/gofiber/fiber/v3/middleware/paginate

middleware/pprof

github.com/gofiber/fiber/v3/middleware/pprof

middleware/proxy

github.com/gofiber/fiber/v3/middleware/proxy

middleware/recover

github.com/gofiber/fiber/v3/middleware/recover

middleware/redirect

github.com/gofiber/fiber/v3/middleware/redirect

middleware/requestid

github.com/gofiber/fiber/v3/middleware/requestid

middleware/responsetime

github.com/gofiber/fiber/v3/middleware/responsetime

middleware/rewrite

github.com/gofiber/fiber/v3/middleware/rewrite

middleware/session

Package session provides session management middleware for Fiber.

github.com/gofiber/fiber/v3/middleware/session

middleware/skip

github.com/gofiber/fiber/v3/middleware/skip

middleware/sse

Package sse provides a small Server-Sent Events handler for Fiber.

github.com/gofiber/fiber/v3/middleware/sse

middleware/static

github.com/gofiber/fiber/v3/middleware/static

middleware/timeout

github.com/gofiber/fiber/v3/middleware/timeout