nushell/crates/nu-command/src
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
..
charting Categorification: move commands histogram and version out of the default category (#9946) 2023-08-07 09:23:53 -07:00
conversions Improve I/O types of into decimal(/float) (#9998) 2023-08-13 20:29:17 +02:00
database handle sqlite tables better by surrounding with brackets (#9752) 2023-07-20 11:20:56 -05:00
date rename from date format to format date (#9902) 2023-08-04 06:06:00 +12:00
debug Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
env Input output checking (#9680) 2023-07-14 15:20:35 +12:00
experimental Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
filesystem Fix watch not handling all file changes (#9990) 2023-08-12 14:34:40 -07:00
filters allow select to take a $variable with a list of columns (#9987) 2023-08-15 07:01:45 -05:00
formats Categorification: graduate nuon --- from the experimental category to the formats category (#9932) 2023-08-07 05:09:44 +12:00
generators Document and critically review ShellError variants - Ep. 2 (#8326) 2023-03-06 11:31:07 +01:00
hash Fix signatures for cellpath access of records (#9793) 2023-07-26 23:13:57 +02:00
help Refactor scope commands (#10023) 2023-08-17 11:58:38 +03:00
math Replace &Span with Span since Span is Copy (#9770) 2023-07-31 21:47:46 +02:00
misc REFACTOR: move source out of deprecated commands (#9060) 2023-05-04 00:02:03 +02:00
network Make http -f display the request headers. Closes #9912 (#10022) 2023-08-17 09:19:10 -05:00
path Remove potential panic from path join (#10012) 2023-08-16 10:27:36 +03:00
platform fix the signature of input list (#9977) 2023-08-10 16:44:59 +02:00
random Add functions for each Value case (#9736) 2023-07-21 08:20:33 -05:00
removed Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
shells Fix usage for the exit command. (#9450) 2023-06-16 10:09:02 +02:00
strings Move format duration/filesize back into core (#9978) 2023-08-11 06:01:47 +12:00
system Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
viewers nu-table/ Add table.indent configuration (#9983) 2023-08-11 08:37:16 -05:00
default_context.rs Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
example_test.rs Remove Signature.vectorizes_over_list entirely (#9777) 2023-07-26 23:34:43 +02:00
hook.rs Auto-expand table based on terminal width (#9934) 2023-08-08 05:47:23 -05:00
lib.rs Rename misused "deprecation" to removal (#10000) 2023-08-15 07:17:31 +12:00
progress_bar.rs cp progress bar implementation (#8012) 2023-02-22 11:57:38 -08:00
sort_utils.rs Support passing an empty list to sort, uniq, sort-by, and uniq-by (issue #5957) (#8669) 2023-03-29 19:55:38 -07:00