jflics6460
154856066f
Accept records for http subcommand headers (-H) ( #9771 )
...
# 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
2023-07-30 22:28:48 +02:00
..
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-12 18:12:59 +02:00
2023-07-30 22:28:48 +02:00
2023-07-17 18:43:51 +02:00
2023-07-26 16:39:24 -05:00
2022-11-22 16:58:11 -08:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-06-21 09:33:01 +12:00
2023-05-17 18:55:26 -05:00
2023-05-17 18:55:26 -05:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-07-12 18:12:59 +02:00
2023-07-21 17:32:37 +02:00
2023-04-07 14:09:55 -07:00
2023-07-21 08:25:06 -05:00
2023-07-21 17:32:37 +02:00
2023-07-14 15:20:35 +12:00
2023-07-06 08:31:31 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2023-04-07 14:09:55 -07:00
2022-12-22 00:33:26 +02:00
2023-05-17 18:55:26 -05:00
2023-05-17 18:55:26 -05:00
2023-06-10 16:57:26 -05:00
2023-07-05 12:30:53 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-03-15 18:54:55 +13:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-05-22 13:54:04 -05:00
2023-07-23 20:14:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-05-17 18:55:26 -05:00
2023-07-14 15:20:35 +12:00
2023-07-17 18:43:51 +02:00
2023-07-13 09:12:20 -07:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-23 20:14:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-17 18:43:51 +02:00
2023-03-15 18:54:55 +13:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-04-28 13:25:44 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-04-07 06:46:11 -05:00
2023-07-27 21:32:25 +02:00
2023-07-21 17:32:37 +02:00
2022-12-22 16:38:07 -08:00
2023-07-21 17:32:37 +02:00
2023-04-28 13:25:44 +02:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00
2023-07-20 19:10:53 -05:00
2023-07-17 18:43:51 +02:00
2023-07-17 18:43:51 +02:00
2023-07-21 17:32:37 +02:00
2023-07-21 17:32:37 +02:00