Skip to main content

Module http

Module http 

Source
Expand description

HTTP API server.

REST API built with axum, bound to 127.0.0.1 (configurable port):

  • POST /search — Search code with various modes
  • POST /index — Trigger index build for a project
  • GET /status — Query index status for a project

Structs§

AppState
Shared application state for HTTP handlers.
ErrorResponse
API error response.
IndexRequest
Request body for POST /index.
IndexResponse
Response for POST /index.
SearchRequest
Request body for POST /search.
StatusQuery
Request params for GET /status.
StatusResponse
Response for GET /status.

Functions§

start_http_server
Start the HTTP API server.