Skip to content

Commit 8ceb1fc

Browse files
committed
.
1 parent 3754efe commit 8ceb1fc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

book/metadata.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ http get https://api.example.com/large-file
7272
Without `metadata access`, you'd need `--full` to get metadata, which consumes the entire response body and prevents streaming. With `metadata access`, the body continues streaming through the pipeline.
7373

7474
Metadata structure:
75+
7576
- `status` - HTTP status code (200, 404, 500, etc.)
7677
- `headers` - Response headers as `[{name, value}, ...]`
7778
- `urls` - Redirect history

cookbook/http.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ To upload a form with a file (think a common file upload form in a browser, wher
186186

187187
1. Specify the content type as `multipart/form-data`
188188
2. Provide the record as the POST body
189-
3. Provide the file data in one of the record fields as *binary* data.
189+
3. Provide the file data in one of the record fields as _binary_ data.
190190

191191
```nu
192192
http post https://httpbin.org/post --content-type "multipart/form-data" {
@@ -288,6 +288,7 @@ http get https://api.example.com/events.jsonl
288288
The response body streams through the pipeline while you inspect metadata and process the stream simultaneously. Before `metadata access`, you needed `--full` to get metadata, which consumed the entire body and prevented streaming.
289289

290290
Available metadata:
291+
291292
- `status` - HTTP status code (200, 404, 500, etc.)
292293
- `headers` - `[{name, value}, ...]`
293294
- `urls` - Redirect history

0 commit comments

Comments
 (0)