diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-10-20 14:20:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-20 14:20:00 +0200 |
| commit | b59b29a534578cb1910a21a394d0279cb423c2b2 (patch) | |
| tree | a63f926a6ce83b6c7ee113f1088538628f2bd557 /zellij-utils/src/plugin_api/plugin_command.proto | |
| parent | docs(changelog): esc drop to shell in command panes (diff) | |
| download | sl0ppij-b59b29a534578cb1910a21a394d0279cb423c2b2.tar.gz sl0ppij-b59b29a534578cb1910a21a394d0279cb423c2b2.tar.xz sl0ppij-b59b29a534578cb1910a21a394d0279cb423c2b2.zip | |
feat(plugins): web requests api (#2879)
* feat(plugins): web requests api
* fix e2e tests
* fix e2e tests again
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 e0b26184..93e7d6b2 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; |
