Module http

Source
Expand description

Embedded HTTP server.

environmentd embeds an HTTP server for introspection into the running process. At the moment, its primary exports are Prometheus metrics, heap profiles, and catalog dumps.

Modulesยง

catalog ๐Ÿ”’
Catalog introspection HTTP endpoints.
console ๐Ÿ”’
Console Impersonation HTTP endpoint.
memory ๐Ÿ”’
metrics ๐Ÿ”’
Metrics tracked for environmentds HTTP servers.
probe ๐Ÿ”’
Health check HTTP endpoints.
prometheus ๐Ÿ”’
root ๐Ÿ”’
HTTP endpoints for the homepage and static files.
sql ๐Ÿ”’
webhook ๐Ÿ”’
Helpers for handling events from a Webhook source.

Structsยง

AuthedClient
AuthedUser
BaseRouterConfig ๐Ÿ”’
Configuration for base_router.
HttpConfig
HttpServer
InternalHttpConfig
InternalHttpServer
Metrics
ReloadingTlsConfig
SqlResponse
The response to a SqlRequest.
WebhookState
WsState

Enumsยง

AuthError ๐Ÿ”’
ConnProtocol ๐Ÿ”’
Credentials ๐Ÿ”’
TlsMode
WebSocketAuth
WebSocketResponse

Constantsยง

MAX_REQUEST_SIZE
Maximum allowed size for a request.

Traitsยง

DefaultLayers ๐Ÿ”’
Default layers that should be applied to all routes, and should get applied to both the internal http and external http routers.

Functionsยง

auth ๐Ÿ”’
base_router ๐Ÿ”’
Returns the router for routes that are shared between the internal and external HTTP servers.
handle_leader_promote
handle_leader_skip_catchup
handle_leader_status
handle_load_error ๐Ÿ”’
Glue code to make tower work with axum.
http_auth ๐Ÿ”’
init_ws ๐Ÿ”’
internal_http_auth ๐Ÿ”’

Type Aliasesยง

Delayed ๐Ÿ”’