1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! MCP plugin implementations for all `elicit_reqwest` types.
//!
//! Each module exposes a plugin struct that implements [`ElicitPlugin`][elicitation::ElicitPlugin]
//! and can be registered in a [`PluginRegistry`][elicitation::PluginRegistry].
//!
//! # Available plugins
//!
//! | Plugin | Namespace | Tools |
//! |---|---|---|
//! | [`Plugin`] | `"http"` | `get`, `post`, `put`, `delete`, `patch`, `head` |
//! | [`StatusCodePlugin`] | `"status_code"` | `from_u16`, `as_str`, `canonical_reason`, `is_*` |
//! | [`UrlPlugin`] | `"url"` | `parse`, `scheme`, `host`, `port`, `path`, `query`, `join`, `set_*`, … |
//! | [`MethodPlugin`] | `"method"` | `from_str`, `as_str`, `is_safe`, `is_idempotent` |
//! | [`HeaderMapPlugin`] | `"header_map"` | `new`, `get`, `insert`, `remove`, `keys`, `values`, … |
//! | [`RequestBuilderPlugin`] | `"request_builder"` | `new_get/post/…`, `with_*`, `inspect`, `send` |
//! | [`WorkflowPlugin`] | `"workflow"` | `url_build`, `fetch`, `fetch_json`, `fetch_auth`, `post_json`, `api_call`, `health_check`, `build_request`, `status_summary`, `paginated_get` |
//!
//! # Example — full registry
//!
//! ```rust,no_run
//! use elicitation::PluginRegistry;
//! use elicit_reqwest::plugins::{
//! Plugin, StatusCodePlugin, UrlPlugin, MethodPlugin, HeaderMapPlugin,
//! RequestBuilderPlugin, WorkflowPlugin,
//! };
//!
//! let registry = PluginRegistry::new()
//! .register("http", Plugin::new())
//! .register("status_code", StatusCodePlugin)
//! .register("url", UrlPlugin)
//! .register("method", MethodPlugin)
//! .register("header_map", HeaderMapPlugin)
//! .register("request_builder", RequestBuilderPlugin::new())
//! .register("workflow", WorkflowPlugin::default_client());
//! ```
pub
pub use HeaderMapPlugin;
pub use Plugin;
pub use MethodPlugin;
pub use ;
pub use StatusCodePlugin;
pub use UrlPlugin;
pub use WorkflowPlugin;