nushell/crates/nu-command/src/formats/to
Jack Wright 0d060aeae8
Use pipeline data for http post|put|patch|delete commands. (#13254)
# Description
Provides the ability to use http commands as part of a pipeline.
Additionally, this pull requests extends the pipeline metadata to add a
content_type field. The content_type metadata field allows commands such
as `to json` to set the metadata in the pipeline allowing the http
commands to use it when making requests.

This pull request also introduces the ability to directly stream http
requests from streaming pipelines.

One other small change is that Content-Type will always be set if it is
passed in to the http commands, either indirectly or throw the content
type flag. Previously it was not preserved with requests that were not
of type json or form data.

# User-Facing Changes
* `http post`, `http put`, `http patch`, `http delete` can be used as
part of a pipeline
* `to text`, `to json`, `from json` all set the content_type metadata
field and the http commands will utilize them when making requests.
2024-07-01 12:34:19 -07:00
..
command.rs Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
csv.rs Implement streaming I/O for CSV and TSV commands (#12918) 2024-05-22 16:55:24 +00:00
delimited.rs Implement streaming I/O for CSV and TSV commands (#12918) 2024-05-22 16:55:24 +00:00
json.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
md.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
mod.rs Msgpack commands (#12664) 2024-04-26 06:23:16 -05:00
msgpack.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
msgpackz.rs msgpackz: increase default compression level (#13035) 2024-06-04 17:19:10 -07:00
nuon.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
text.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
toml.rs Use native toml datetime type in to toml (#13018) 2024-06-07 07:43:30 -05:00
tsv.rs Implement streaming I/O for CSV and TSV commands (#12918) 2024-05-22 16:55:24 +00:00
xml.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00
yaml.rs Replace ExternalStream with new ByteStream type (#12774) 2024-05-16 07:11:18 -07:00