TReq
TReq copied to clipboard
A CLI tool for effortless HTTP requests
Further work on #24
Currently, the repo does not have any documentation for the source codes. It is better to create documentation for each file. - [ ] `view` source code - [ ]...
When user execute TReq in a not TTY enviroment. Redirecting or piping output, like this... ``` treq url.com > file.txt # redirecting to treq url.com | grep search-term ``` The...
By default, TReq exits with 0 when no network or other fatal errors occur. This flag instructs TReq to also check the HTTP status code and exit with an error...
In this initial version the TUI will be able to... - View saved requests - Edit saved requests data (with options to undo or redo) - Create new saved requests...
The objective is to replicate this feature in HTTPie (https://httpie.io/docs/cli/file-based-separators). The goal it is: instead of using a static string as the value for some header, you can use :@...
### Additional Considerations: If not exist, in [CliInput](https://github.com/talis-fb/TReq/blob/e9f555fa36ae4e5468e16add085c7483b6e5ea0d/src/view/input/cli_input.rs#L8) add a bool field for this and use it for implementation. There are two possible ways to do that then: - Add...
The objective is to replicate this feature in HTTPie: https://httpie.io/docs/cli/redirected-input Accept user for passing request data is through redirected **stdin** (standard input)βpiping. Receiving the inputs from this method is similar...
Beyond just basic response information, all data of request should to appear. This task depend #22, because this will execute both command with `--offline` flag and normal command without it.
The objective is to replicate this feature in HTTPie (https://httpie.io/docs/cli/offline-mode). This will be applied in Basic request subcommand (like `treq GET` or `treq POST`) and `treq run`. When the `--offline`...