in requests.go [358:372]
func (req *WebhookRequest) TestCxHandler(out io.Writer, h HandlerFunc) (*WebhookResponse, error) {
if req.ctx == nil {
req.ctx = context.Background
}
res := req.initializeResponse()
err := h(res, req)
if err != nil {
return nil, err
}
err = res.WriteResponse(out)
if err != nil {
return nil, err
}
return res, nil
}