nushell/crates/nu-cmd-lang/src/core_commands
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
..
overlay Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
scope Define keywords (#13213) 2024-06-25 18:32:54 -07:00
alias.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
break_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
collect.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
const_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
continue_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
def.rs Fix multiple issues with def --wrapped help example (#13123) 2024-06-10 19:12:54 -05:00
describe.rs Add string/binary type color to ByteStream (#12897) 2024-05-20 00:35:32 +00:00
do_.rs Fix do signature (#13216) 2024-06-29 16:17:06 -05:00
echo.rs Mention print in the echo help text (#12436) 2024-04-06 20:24:00 -05:00
error_make.rs Add command_prelude module (#12291) 2024-03-26 21:17:30 +00:00
export_alias.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export_const.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export_def.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export_extern.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export_module.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export_use.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
export.rs Make get_full_help take &dyn Command (#12903) 2024-05-19 19:56:33 +02:00
extern_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
for_.rs Deprecate --numbered from for (#13112) 2024-06-10 03:01:22 +00:00
hide_env.rs nu-cmd-lang cleanup (#12609) 2024-04-25 14:16:12 +00:00
hide.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
if_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
ignore.rs Rename IoStream to OutDest (#12433) 2024-04-09 16:48:32 +00:00
let_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
loop_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
match_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
mod.rs Remove lazy records (#12682) 2024-05-03 08:36:10 +08:00
module.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
mut_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
return_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
try_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00
use_.rs Use CommandType in more places (#12832) 2024-05-18 23:37:31 +00:00
version.rs Allow plugins to report their own version and store it in the registry (#12883) 2024-06-21 06:27:09 -05:00
while_.rs Define keywords (#13213) 2024-06-25 18:32:54 -07:00