ccproxy.plugins.command_replay¶
ccproxy.plugins.command_replay
¶
Command Replay Plugin - Generate curl and xh commands for provider requests.
CommandReplayConfig
¶
Bases: BaseModel
Configuration for command replay generation.
Generates curl and xh commands for provider requests to enable easy replay and debugging of API calls.
should_generate_for_url
¶
Check if commands should be generated for the given URL.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
url
|
str
|
The request URL to check |
required |
is_provider_request
|
bool | None
|
Whether this is a provider request (None = auto-detect) |
None
|
Returns:
| Type | Description |
|---|---|
bool
|
True if commands should be generated for this URL |
Source code in ccproxy/plugins/command_replay/config.py
CommandReplayHook
¶
Bases: Hook
Hook for generating curl and xh command replays of provider requests.
Listens for PROVIDER_REQUEST_PREPARED events and generates command line equivalents that can be used to replay the exact same HTTP requests.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
CommandReplayConfig | None
|
Command replay configuration |
None
|
file_formatter
|
CommandFileFormatter | None
|
File formatter for writing commands to files |
None
|
Source code in ccproxy/plugins/command_replay/hook.py
CommandReplayFactory
¶
Bases: SystemPluginFactory
Factory for creating command replay plugin instances.
Source code in ccproxy/plugins/command_replay/plugin.py
CommandReplayRuntime
¶
Bases: SystemPluginRuntime
Runtime for the command replay plugin.
Generates curl and xh commands for provider requests to enable easy replay and debugging of API calls.
Source code in ccproxy/plugins/command_replay/plugin.py
get_health_info
¶
Get plugin health information.