Skip to main content

read_from

Function read_from 

Source
pub fn read_from(r: &mut impl Read) -> Result<HookEvent, String>
Expand description

Read a HookEvent from an arbitrary reader.

Reads until EOF, then parses the JSON payload. The detected CallerKind and event type are stored in thread-locals so that a subsequent respond_to call can serialise the response in the correct format.