nushell/crates/nu-command/tests/commands/network/http
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
..
delete.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
get.rs Disable flaky network tests (#12010) 2024-02-28 16:28:33 +00:00
head.rs Allow http commands' automatic redirect-following to be disabled (#11329) 2023-12-28 15:26:34 +08:00
mod.rs add http options command (#9365) 2023-06-09 08:00:40 -05:00
options.rs add http options command (#9365) 2023-06-09 08:00:40 -05:00
patch.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
post.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
put.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00