pub fn parse_request(
req: Request<Body>,
secret: &str,
) -> impl Future<Item = Option<HookContent>, Error = Error>
Expand description
Handle a hook request, verifying the signature. The future
returned by this function yields None
if the signature is
invalid.