mirror of
https://github.com/nushell/nushell.git
synced 2024-12-03 05:44:09 +01:00
154856066f
# Description See also: #9743 Before: `http <subcommand> -H` took a list in the form: ```nushell [my-header-key-A my-header-value-A my-header-key-B my-header-value-B] ``` Now: In addition to the old format, Records can be passed, For example, ```nushell > let reqHeaders = { Cookie: "acc=barfoo", User-Agent: "Mozilla/7.0 (Windows NT 33.0; Win64; x64) AppleWebKit/1038.90 (KHTML, like Gecko)" } > http get -H $reqHeaders https://example.com ``` is now equivalent to ```nushell http get -H [Cookie "acc=barfoo" User-Agent "Mozilla/7.0 (Windows NT 33.0; Win64; x64) AppleWebKit/1038.90 (KHTML, like Gecko)"] https://example.com ``` # User-Facing Changes No breaking changes, but Records can now also be passed to `http <subcommand> -H`. # Tests + Formatting # After Submitting |
||
---|---|---|
.. | ||
delete.rs | ||
get.rs | ||
head.rs | ||
mod.rs | ||
options.rs | ||
patch.rs | ||
post.rs | ||
put.rs |