Help us shape the future of Go! Take the 2026 Go Developer Survey

http/

directory
v0.1.0 Latest Latest
Warning

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

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

Directories

Path Synopsis
Package auth authenticates requests: it resolves the user of a request and stores it in the context.
Package auth authenticates requests: it resolves the user of a request and stores it in the context.
authtest
Package authtest checks auth.Authenticator implementations against the rules every authenticator shares.
Package authtest checks auth.Authenticator implementations against the rules every authenticator shares.
gate
Package gate authorizes the authenticated user with plain Go rules.
Package gate authorizes the authenticated user with plain Go rules.
Package client provides an http.RoundTripper that retries safe outgoing requests with backoff and jitter, honoring Retry-After.
Package client provides an http.RoundTripper that retries safe outgoing requests with backoff and jitter, honoring Retry-After.
internal/retry
Package retry owns replay safety, attempt lifetime, and retry sequencing.
Package retry owns replay safety, attempt lifetime, and retry sequencing.
internal
bodysize
Package bodysize carries the request body size limit through a context.Context, from the body-limit middleware (arkoren.dev/core/http/middleware/bodylimit) to the request body helpers (arkoren.dev/core/http/request).
Package bodysize carries the request body size limit through a context.Context, from the body-limit middleware (arkoren.dev/core/http/middleware/bodylimit) to the request body helpers (arkoren.dev/core/http/request).
Package link creates and verifies signed application links that can expire, be used once, or be revoked when state changes.
Package link creates and verifies signed application links that can expire, be used once, or be revoked when state changes.
internal/signature
Package signature owns the versioned link MAC format, not link policy.
Package signature owns the versioned link MAC format, not link policy.
middleware
bodylimit
Package bodylimit caps request body reads for a router or group.
Package bodylimit caps request body reads for a router or group.
contenttype
Package contenttype provides opt-in middleware that rejects requests whose body media type is not allowed.
Package contenttype provides opt-in middleware that rejects requests whose body media type is not allowed.
cors
Package cors grants browser access to cross-origin responses.
Package cors grants browser access to cross-origin responses.
csrf
Package csrf provides Cross-Site Request Forgery protection middleware.
Package csrf provides Cross-Site Request Forgery protection middleware.
errormap
Package errormap provides middleware that translates errors returned by handlers into HTTP problems.
Package errormap provides middleware that translates errors returned by handlers into HTTP problems.
locale
Package locale provides middleware that picks the response language from the request and hands it to validate to translate validation messages.
Package locale provides middleware that picks the response language from the request and hands it to validate to translate validation messages.
locale/internal/negotiation
Package negotiation resolves original catalog keys from HTTP preferences.
Package negotiation resolves original catalog keys from HTTP preferences.
ratelimit
Package ratelimit provides middleware that limits requests per key with a sliding window counted in a cache, answering 429 by default with RateLimit headers.
Package ratelimit provides middleware that limits requests per key with a sliding window counted in a cache, answering 429 by default with RateLimit headers.
ratelimit/internal/window
Package window computes exact sliding-counter usage and recovery intervals.
Package window computes exact sliding-counter usage and recovery intervals.
requestlog
Package requestlog logs returned handler errors and observed 5xx responses to a slog.Logger.
Package requestlog logs returned handler errors and observed 5xx responses to a slog.Logger.
secureheaders
Package secureheaders provides HTTP security response-header middleware.
Package secureheaders provides HTTP security response-header middleware.
Package request reads and validates HTTP request data: parameters, headers, cookies, bodies, and the user.
Package request reads and validates HTTP request data: parameters, headers, cookies, bodies, and the user.
internal/decode
Package decode converts native JSON semantics to safe validation feedback.
Package decode converts native JSON semantics to safe validation feedback.
Package response writes HTTP responses from handlers: JSON, XML, HTML, redirects, streams, and server-sent events.
Package response writes HTTP responses from handlers: JSON, XML, HTML, redirects, streams, and server-sent events.
internal/stream
Package stream owns producer joining and streaming response I/O.
Package stream owns producer joining and streaming response I/O.
Package router provides an HTTP router with error-returning handlers, middleware, and centrally rendered Problem Details errors.
Package router provides an HTTP router with error-returning handlers, middleware, and centrally rendered Problem Details errors.
internal/openapi
Package openapi exports descriptive route snapshots as OpenAPI documents.
Package openapi exports descriptive route snapshots as OpenAPI documents.
internal/snapshot
Package snapshot defines detached route metadata for documentation export.
Package snapshot defines detached route metadata for documentation export.
Package server serves any http.Handler over HTTP or HTTPS with secure default timeouts, startup-time port binding, and graceful shutdown.
Package server serves any http.Handler over HTTP or HTTPS with secure default timeouts, startup-time port binding, and graceful shutdown.
Package session provides cache-backed HTTP session state and middleware for Arkoren applications.
Package session provides cache-backed HTTP session state and middleware for Arkoren applications.
internal/persistence
Package persistence owns session records, guarded writes, and retirement.
Package persistence owns session records, guarded writes, and retirement.
Package swagger serves a local Swagger UI page and pinned static assets for an application-owned OpenAPI specification URL.
Package swagger serves a local Swagger UI page and pinned static assets for an application-owned OpenAPI specification URL.
Package webhook receives inbound webhook notifications: it reads the raw body within a size limit, authenticates the request with a provider Source, hands the delivery to the handler the application bound to its event, and acknowledges acceptance with 200 after that handler succeeds.
Package webhook receives inbound webhook notifications: it reads the raw body within a size limit, authenticates the request with a provider Source, hands the delivery to the handler the application bound to its event, and acknowledges acceptance with 200 after that handler succeeds.

Jump to

Keyboard shortcuts

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