Skip to content
Open

Kimi #1713

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions httpie/cli/examples/batch_templates.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
]
}
12 changes: 12 additions & 0 deletions httpie/cli/examples/batch_templates.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions httpie/cli/httpie/cli/batch.py
Original file line number Diff line number Diff line change
@@ -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
Loading