From 944edf599cf87fe616f929079ed3d423a603e57e Mon Sep 17 00:00:00 2001 From: Un7corn Date: Sat, 21 Mar 2026 16:55:30 +0800 Subject: [PATCH 1/3] Create batch.py --- httpie/cli/httpie/cli/batch.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 httpie/cli/httpie/cli/batch.py diff --git a/httpie/cli/httpie/cli/batch.py b/httpie/cli/httpie/cli/batch.py new file mode 100644 index 0000000000..63764a35ac --- /dev/null +++ b/httpie/cli/httpie/cli/batch.py @@ -0,0 +1,18 @@ +class BatchExecutor: + def __init__(self, args): + self.args = args + + def load_templates(self, file_path): + pass + + def preview_requests(self, requests): + pass + + def select_requests(self, requests): + pass + + def execute(self, requests): + pass + + def export_results(self, results): + pass From cb16c4c658d39439c948a7b5a6b65c236173096e Mon Sep 17 00:00:00 2001 From: Un7corn Date: Sat, 21 Mar 2026 16:56:09 +0800 Subject: [PATCH 2/3] Create batch_templates.yaml --- httpie/cli/examples/batch_templates.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 httpie/cli/examples/batch_templates.yaml diff --git a/httpie/cli/examples/batch_templates.yaml b/httpie/cli/examples/batch_templates.yaml new file mode 100644 index 0000000000..974260ad1c --- /dev/null +++ b/httpie/cli/examples/batch_templates.yaml @@ -0,0 +1,12 @@ +requests: + - name: get-ip + method: GET + url: https://httpbin.org/ip + + - name: post-json + method: POST + url: https://httpbin.org/post + headers: + Content-Type: application/json + body: + hello: world From 258d412aab63cba07a86b9f77b8e7ea1e81ea4e1 Mon Sep 17 00:00:00 2001 From: Un7corn Date: Sat, 21 Mar 2026 16:56:46 +0800 Subject: [PATCH 3/3] Create batch_templates.json --- httpie/cli/examples/batch_templates.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 httpie/cli/examples/batch_templates.json diff --git a/httpie/cli/examples/batch_templates.json b/httpie/cli/examples/batch_templates.json new file mode 100644 index 0000000000..4edaf66760 --- /dev/null +++ b/httpie/cli/examples/batch_templates.json @@ -0,0 +1,20 @@ +{ + "requests": [ + { + "name": "get-ip", + "method": "GET", + "url": "https://httpbin.org/ip" + }, + { + "name": "post-json", + "method": "POST", + "url": "https://httpbin.org/post", + "headers": { + "Content-Type": "application/json" + }, + "body": { + "hello": "world" + } + } + ] +}