rifling-0.4.0 doesn't have any documentation.
Rifling
Rifling is a library to create Github/GitLab Webhook listener, influenced by afterparty.
If you want a commandline tool rather than a library, please consult trigger.
Features
- Supports both GitHub and GitLab.
- Supports both
application/jsonmode and (optionally)application/x-www-form-urlencodedmode. - (Potentially) support for different web frameworks.
- Optional payload parsing support. Using
serde_json's untyped parsing functionality. - Optional payload authentication support with
ringor libraries from RustCrypto team. - Optional logging.
Optional features
- Web frameworks:
hyper-support(default): Support of hyper. Example: hyper-simple.rs
- Payload authentication (does not affect usage):
- Payload content type:
content-type-urlencoded(enabled by default): Support forapplication/x-www-form-urlencodedtyped content.
- Payload parsing:
parse(default): Parse the payload. Parsed payload will be present inDelivery.payloadasOption<Value>.
- Logging:
logging(default): Use the officiallogcrate to log.logging-print: Useprintlnmacro to print log. Will be ignored whenloggingis enabled.
Notes
- Debug logs are useful to find problems.
- Events received from GitLab will be patched by lower casing and replacing " "(whitespace) with "_"(underscore).
- e.g.
Push Hookwill bepush_hookwhile registering hooks.
- e.g.
License
MIT License. See LICENSE.