diff options
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
-rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index e0b261847..93e7d6b2b 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -83,6 +83,7 @@ enum CommandName { OpenCommandInPlace = 69; OpenFileInPlace = 70; RunCommand = 71; + WebRequest = 72; } message PluginCommand { @@ -130,6 +131,7 @@ message PluginCommand { OpenFilePayload open_terminal_in_place_payload = 41; OpenCommandPanePayload open_command_pane_in_place_payload = 42; RunCommandPayload run_command_payload = 43; + WebRequestPayload web_request_payload = 44; } } @@ -179,6 +181,21 @@ message RunCommandPayload { repeated ContextItem context = 4; } +message WebRequestPayload { + string url = 1; + HttpVerb verb = 2; + repeated event.Header headers = 3; + bytes body = 4; + repeated ContextItem context = 5; +} + +enum HttpVerb { + Get = 0; + Post = 1; + Put = 2; + Delete = 3; +} + message EnvVariable { string name = 1; string value = 2; |