Skip to main content

Module handlers

Module handlers 

Source
Expand description

REST API handlers.

Structs§

AppState
Shared application state.

Functions§

api_info
API information endpoint.
create_session
Create a new session. The body is optional because the request carries no fields: POST /sessions with nothing at all is the natural call. A body that is sent still has to parse, so a caller who passes the old shell/working_dir/env is told so rather than having them dropped.
delete_session
Delete a session.
execute_command
Execute a command in a session.
execute_oneshot
Execute a command without session (one-shot).
get_session
Get session status.
health
Health check endpoint.
list_sessions
List all sessions.