OxL Справочник OxL
РусскийEnglish

fn oxl_rpc_ctx

The ctx of the current request (bound to the name ctx inside handlers by the compiler).

Example:

oxl✓ проверяется в CI
fn main() io {
  let c = oxl_rpc_ctx()
  print("[{c.idempotencyKey}] {c.caller.isUser(none)}")
}
Вывод
[] false
pub(api) fn oxl_rpc_ctx() -> Ctx

С версии. 1.0.0-beta

Возвращает

Ctx

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/core/rpc.oxl:400

См. также