Skip to main content

Module http

Module http 

Source

Modulesยง

authorize
client_ip ๐Ÿ”’
dyn_log
dyn_trace
event
extractor
handler
header
hints ๐Ÿ”’
influxdb
jaeger
logs
loki
mem_prof
memory_limit ๐Ÿ”’
Middleware for limiting total memory usage of concurrent HTTP request bodies.
opentsdb
otlp
pprof
prom_store
prometheus
prom supply the prometheus HTTP API Server compliance
read_preference ๐Ÿ”’
result
splunk
Splunk HTTP Event Collector (HEC) compatible ingestion endpoint.
test_helpers
Axum Test Client
timeout ๐Ÿ”’
utils
workload_scheduler ๐Ÿ”’

Structsยง

ApiState
ColumnSchema
DashboardState
ExtraHttpRouterProviders
Collection of extra HTTP router providers.
GreptimeOptionsConfigState
HttpOptions
HttpRecordsOutput
HttpServer
HttpServerBuilder
OutputSchema

Enumsยง

Epoch
GreptimeQueryOutput
HttpResponse
HttpServerKind ๐Ÿ”’
Listener mode for an HttpServer.
ResponseFormat
It allows the results of SQL queries to be presented in different formats.

Constantsยง

AUTHORIZATION_HEADER
Authorization header
DEFAULT_BODY_LIMIT ๐Ÿ”’
Default http body limit (64M).
DEFAULT_HTTP_API_ADDR_PORT ๐Ÿ”’
Default address port for the public HTTP API server.
HTTP_API_PREFIX
HTTP_API_PREFIX_WITHOUT_TRAILING_SLASH
HTTP_API_SERVER
HTTP_API_VERSION
HTTP_SERVER

Staticsยง

PUBLIC_API_PREFIX

Traitsยง

ExtraHttpRouterProvider
Provides an extra router to merge into an HTTP server.

Functionsยง

enforce_api_surface ๐Ÿ”’
Outer guard for the API listener. Rejects any path outside the API surface with 404 Not Found before it can reach a handler (and before auth side effects). Reachability is kept separate from authentication.
is_api_listener_path
Paths visible on the dedicated API listener: the /v1 APIs and the dashboard.
is_namespace ๐Ÿ”’
Returns true when path equals root or is nested directly under it (root/...). Uses an exact slash boundary so /v1 does not match /v10 or /v1-internal.
process_with_limit

Type Aliasesยง

ExtraHttpRouterProviderRef