Skip to content

Commit 8cf028e

Browse files
committed
.
1 parent cb2e5ac commit 8cf028e

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

book/metadata.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ You can attach arbitrary metadata to pipeline data using the [`metadata set`](/c
4646
"data" | metadata set --merge {custom_key: "custom_value"}
4747
```
4848

49-
This allows you to attach any key-value pairs to data flowing through the pipeline. To avoid key collisions between different commands and plugins, it's recommended to use namespaced keys with an underscore separator:
50-
51-
- `"http_response"` - HTTP response metadata
52-
- `"polars_schema"` - DataFrame schema information
53-
- `"custom_plugin_field"` - Plugin-specific metadata
54-
55-
This naming convention helps ensure different parts of the system don't overwrite each other's metadata.
56-
5749
## HTTP Response Metadata
5850

5951
All HTTP commands attach response metadata (status, headers, redirect history):

cookbook/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ http get https://api.example.com/data.json | metadata | get http_response.status
267267
# => 200
268268
```
269269

270-
To work with metadata while streaming the response body, use `metadata access`. This is useful for handling unexpected responses (errors, redirects, content negotiation) without consuming the entire body:
270+
To work with metadata while streaming the response body, use `metadata access`:
271271

272272
```nu
273273
# Log status and headers while streaming a large JSONL file

0 commit comments

Comments
 (0)