Skip to main content

Crate rspamd_client

Crate rspamd_client 

Source
Expand description

§Rspamd Client for Rust

This crate provides an HTTP client for interacting with the Rspamd service in Rust. It supports both synchronous and asynchronous operations using the attohttpc and reqwest libraries, respectively.

§Features

  • Sync: Synchronous client using attohttpc.
  • Async: Asynchronous client using reqwest.
  • Persistent clients with connection pooling (async backend).
  • Easily configurable with support for proxy, encryption, TLS and ZSTD compression.
  • Supports scanning emails for spam scores and other metrics.

Re-exports§

pub use config::Config;
pub use config::EnvelopeData;
pub use config::ProxyConfig;
pub use config::TlsSettings;
pub use protocol::RspamdLearnReply;
pub use protocol::RspamdScanReply;
pub use backend::async_client::RspamdAsyncClient;
pub use backend::async_client::async_client;Deprecated
pub use backend::async_client::scan_async;Deprecated
pub use backend::async_client::AsyncClient;Deprecated

Modules§

backend
config
Configuration for rspamd-client
error
Error handling for the Rspamd API client.
protocol