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
HttpConfig
HttpServer
InternalRouteConfig
LoginCredentials
Metrics
SqlResponse
The response to a SqlRequest.
TowerSessionData
WebhookState
WsState

Enumsยง

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

Constantsยง

MAX_REQUEST_SIZE
Maximum allowed size for a request.
SESSION_DURATION ๐Ÿ”’

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 ๐Ÿ”’
check_role_allowed ๐Ÿ”’
handle_leader_promote
handle_leader_skip_catchup
handle_leader_status
handle_load_error ๐Ÿ”’
Glue code to make tower work with axum.
handle_login
handle_logout
http_auth ๐Ÿ”’
init_ws ๐Ÿ”’
x_materialize_user_header_auth ๐Ÿ”’

Type Aliasesยง

Delayed ๐Ÿ”’