← Về thư mục
openai4s/server/diagnostics_routes.py
- _BundleGate · class · L67-L107 — class _BundleGate
- init · method · L70-L75 — def init(self, cooldown_s: float = _COOLDOWN_S) -> None
- try_begin · method · L77-L88 — def try_begin(self, principal: str) -> str
- end · method · L90-L102 — def end(self, principal: str | None = None, *, delivered: bool = True) -> None
- reset · method · L104-L107 — def reset(self) -> None
- reset_bundle_gate_for_tests · function · L113-L114 — def reset_bundle_gate_for_tests() -> None
- _principal_id · function · L117-L123 — def _principal_id(handler: Any) -> str
- _request_id · function · L126-L127 — def _request_id(handler: Any) -> str
- _reply_json · function · L130-L153 — def _reply_json(handler: Any, payload: Any, status: int = 200) -> None
- _refuse_member · function · L156-L161 — def _refuse_member(handler: Any) -> bool
- _status · function · L164-L167 — def _status(handler: Any, cfg: Any) -> None
- _checks · function · L170-L173 — def _checks(handler: Any, cfg: Any) -> None
- _unlink · function · L176-L182 — def _unlink(path: Path | None) -> None
- _refuse_limit · function · L185-L187 — def _refuse_limit(handler: Any, status: int, message: str, code: str) -> None
- _bundle · function · L190-L242 — def _bundle(handler: Any, cfg: Any) -> None: # The request body is ignored: a client-supplied output path is a non-goal.
- handle · function · L245-L265 — def handle(self: Any, method: str, sub: str, *, cfg: Any) -> bool