Bahex
c7e128eed1
add table params support to url join
and url build-query
(#14239)
Add `table<key, value>` support to `url join` for the `params` field,
and as input to `url build-query` #14162
# Description
```nushell
{
"scheme": "http",
"username": "usr",
"password": "pwd",
"host": "localhost",
"params": [
["key", "value"];
["par_1", "aaa"],
["par_2", "bbb"],
["par_1", "ccc"],
["par_2", "ddd"],
],
"port": "1234",
} | url join
```
```
http://usr:pwd@localhost:1234?par_1=aaa&par_2=bbb&par_1=ccc&par_2=ddd
```
---
```nushell
[
["key", "value"];
["par_1", "aaa"],
["par_2", "bbb"],
["par_1", "ccc"],
["par_2", "ddd"],
] | url build-query
```
```
par_1=aaa&par_2=bbb&par_1=ccc&par_2=ddd
```
# User-Facing Changes
## `url build-query`
- can no longer accept one row table input as if it were a record
---------
Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2024-11-06 08:09:40 -06:00
..
2023-12-07 05:46:37 +08:00
2024-10-08 11:01:43 +08:00
2024-05-20 00:35:32 +00:00
2024-08-22 11:38:43 +02:00
2024-08-03 10:09:13 +02:00
2024-02-20 11:08:49 -06:00
2024-04-10 13:31:29 +00:00
2024-10-08 11:01:43 +08:00
2024-11-04 18:03:48 +01:00
2024-08-03 10:09:13 +02:00
2024-11-04 05:41:44 -06:00
2024-09-11 12:45:39 -05:00
2024-10-29 07:01:32 -05:00
2022-11-22 16:58:11 -08:00
2024-10-12 14:49:05 +08:00
2024-05-20 00:35:32 +00:00
2024-06-18 07:19:13 -05:00
2024-05-20 00:35:32 +00:00
2024-11-06 08:09:40 -06:00
2024-05-04 00:53:15 +00:00
2024-05-23 02:05:27 +00:00
2024-05-23 02:05:27 +00:00
2023-04-07 14:09:55 -07:00
2024-07-19 00:21:02 -07:00
2024-06-22 07:41:29 -05:00
2024-08-03 10:09:13 +02:00
2024-07-16 03:49:00 +00:00
2023-11-29 23:21:34 +01:00
2024-07-30 18:55:22 -05:00
2023-09-25 08:00:59 -05:00
2023-09-25 08:00:59 -05:00
2023-04-07 14:09:55 -07:00
2023-10-24 12:48:05 -05:00
2024-01-25 14:16:49 +08:00
2024-07-16 03:54:24 +00:00
2024-06-18 07:19:13 -05:00
2024-10-14 09:57:30 -05:00
2023-11-09 13:51:46 +01:00
2024-05-04 00:53:15 +00:00
2024-10-11 06:43:12 -05:00
2023-09-13 06:35:01 +12:00
2023-04-07 14:09:55 -07:00
2024-06-18 21:37:24 -07:00
2024-05-04 00:53:15 +00:00
2024-04-10 06:27:46 +08:00
2023-05-17 18:55:26 -05:00
2023-05-17 18:55:26 -05:00
2024-03-26 17:50:36 +01:00
2024-09-06 07:22:03 +08:00
2024-05-20 00:35:32 +00:00
2023-11-29 23:21:34 +01:00
2023-09-13 06:35:01 +12:00
2024-06-09 12:15:53 +03:00
2024-07-19 00:22:28 -07:00
2024-05-04 00:53:15 +00:00
2024-05-04 00:53:15 +00:00
2024-04-26 06:33:00 -05:00
2024-10-20 23:14:11 +02:00
2023-07-21 17:32:37 +02:00
2024-08-22 12:02:08 +02:00
2023-11-29 23:21:34 +01:00
2024-03-08 02:18:26 -05:00
2024-05-03 08:36:10 +08:00
2024-09-25 07:48:16 -05:00
2024-04-10 06:27:46 +08:00
2023-07-23 20:14:51 +02:00
2024-06-10 10:43:17 +08:00
2024-02-27 15:05:26 +00:00
2024-10-29 06:37:44 -05:00
2024-05-20 00:35:32 +00:00
2024-11-04 03:39:24 +00:00
2024-10-22 11:54:31 +02:00
2023-08-09 14:12:58 +02:00
2023-09-13 06:35:01 +12:00
2024-08-13 06:34:10 -05:00
2024-11-04 18:03:26 +01:00
2023-11-29 23:21:34 +01:00
2024-08-03 10:09:13 +02:00
2024-08-23 11:18:51 -05:00
2024-10-22 11:54:31 +02:00
2024-05-04 00:53:15 +00:00
2024-10-23 16:50:15 -05:00
2023-07-21 17:32:37 +02:00
2024-05-04 00:53:15 +00:00
2024-05-04 00:53:15 +00:00
2024-08-12 17:29:25 +08:00
2024-05-04 00:53:15 +00:00
2024-07-17 16:02:42 -05:00
2024-04-16 19:08:58 +08:00
2024-11-02 10:28:10 -05:00
2023-11-29 23:21:34 +01:00
2024-10-18 03:05:58 +00:00
2023-07-17 18:43:51 +02:00
2024-08-03 10:09:13 +02:00
2023-07-21 17:32:37 +02:00
2024-02-03 13:23:16 +02:00
2024-07-16 07:16:26 -05:00
2024-10-23 16:49:51 -05:00
2024-11-02 10:28:10 -05:00
2023-04-28 13:25:44 +02:00
2023-04-28 13:25:44 +02:00
2024-02-17 10:51:20 +02:00
2023-04-28 13:25:44 +02:00
2024-03-20 22:14:31 +01:00
2024-10-09 19:18:16 -07:00
2024-07-12 02:43:10 +00:00
2024-05-04 00:53:15 +00:00
2024-09-12 07:16:33 -05:00
2024-05-04 00:53:15 +00:00
2024-10-23 19:45:47 +02:00
2024-09-01 19:03:46 +02:00
2023-11-21 20:48:39 -06:00
2024-11-05 09:33:54 +01:00
2024-11-03 00:56:05 -04:00
2024-10-22 11:30:48 -05:00
2024-10-20 23:14:11 +02:00
2024-08-03 10:09:13 +02:00
2024-02-17 20:04:59 +01:00
2024-10-11 14:13:42 +02:00
2024-03-25 16:51:50 -05:00
2023-11-29 23:21:34 +01:00
2023-11-29 23:21:34 +01:00
2024-05-03 08:36:10 +08:00
2024-05-03 08:36:10 +08:00
2024-11-05 14:12:01 +08:00
2024-03-11 19:46:04 +01:00
2023-07-20 19:10:53 -05:00
2023-09-13 06:35:01 +12:00
2024-07-19 04:16:09 +00:00
2024-04-16 19:08:58 +08:00
2023-11-29 23:21:34 +01:00
2024-05-04 00:53:15 +00:00