class

Arcana::Hook::Rest

Inherits Reference < Object

The few REST calls the hooks make, with short timeouts: a hook that hangs holds up the agent.

Constructors

new(base_url : String)
Source

Instance methods

pending(address : String) : Int32 | Nil
Source
post(path : String, body) : Tuple(Int32 | Nil, JSON::Any | Nil)

{status, parsed body}, or {nil, nil} when the bus can't be reached.

Source