nushell/crates/nu-command/tests/commands/network/http
xonas 4792328d0e
Refactor send_request in client.rs (#13701)
Closes #13687
Closes #13686

# Description
Light refactoring of `send_request `in `client.rs`. In the end there are
more lines but now the logic is more concise and facilitates adding new
conditions in the future. Unit tests ran fine and I tested a few cases
manually.
Cool project btw, I'll be using nushell from now on.
2024-09-04 23:05:39 +02:00
..
delete.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
get.rs Fallback to extension-based content type detection when parsing Content-Type header fails (#13610) 2024-08-14 09:47:01 -05:00
head.rs Allow http commands' automatic redirect-following to be disabled (#11329) 2023-12-28 15:26:34 +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 Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00
post.rs Refactor send_request in client.rs (#13701) 2024-09-04 23:05:39 +02:00
put.rs Use pipeline data for http post|put|patch|delete commands. (#13254) 2024-07-01 12:34:19 -07:00