nushell/crates/nu-command/tests/commands/network/http
Eugene Diachkin ec5b9b9f37
Make http -f display the request headers. Closes #9912 (#10022)
# Description
As described in https://github.com/nushell/nushell/issues/9912, the
`http` command could display the request headers with the `--full` flag,
which could help in debugging the requests. This PR adds such
functionality.

# User-Facing Changes
If `http get` or other `http` command which supports the `--full` flag
is invoked with the flag, it used to display the `headers` key which
contained an table of response headers. Now this key contains two nested
keys: `response` and `request`, each of them being a table of the
response and request headers accordingly.


![image](https://github.com/nushell/nushell/assets/24980/d3cfc4c3-6c27-4634-8552-2cdfbdfc7076)
2023-08-17 09:19:10 -05:00
..
delete.rs changes Reqwest to Ureq. (#8320) 2023-03-05 14:48:13 -08:00
get.rs Make http -f display the request headers. Closes #9912 (#10022) 2023-08-17 09:19:10 -05:00
head.rs changes Reqwest to Ureq. (#8320) 2023-03-05 14:48:13 -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 changes Reqwest to Ureq. (#8320) 2023-03-05 14:48:13 -08:00
post.rs Fix record-to-JSON conversion for HTTP commands (#8663) 2023-03-29 11:55:51 -07:00
put.rs changes Reqwest to Ureq. (#8320) 2023-03-05 14:48:13 -08:00