Comments (4)
In this case, I suggest to create 3 types of writer.
- Writer for response body
- Writer for response header
- Writer for error
Based on different view options, it chose std::io::Write
to pass to the executor
.
from treq.
Will this show the header of the response?
from treq.
No, it really shows nothing. Not even loading
from treq.
An approach you can use is set "stdout" and "stderr" by some Writer struct that does nothing (if quiet flag is used)
from treq.
Related Issues (20)
- Command for remove saved requests
- Command for rename saved requests HOT 15
- Create a "Give a Try" to new users run TReq via containers in Docker
- Add auto-completion of saved requests to commands like `run` and `inspect`
- Only append new payload field like `key=value` in `run` command.
- Any chance to use this with HTTP/2 web sites? HOT 3
- Add support for HTTP/2
- Add `--offline` flag to construct requests and print them in stdout without sending them
- Add file based operator `@` to insert value from files to request items
- Add `--verbose` or `-v` flags
- Add `--body` of `-b` flags, to show in terminal only the response payload HOT 2
- Add `--https` flag for set default protocol as https if not specified
- Setup a Basic CD pipeline in GH Actions to new releases
- Add Redirect Input to receive raw payload request body
- BUG: Invalid non-string value like `key:={"name":]` are parsed HOT 1
- Create prototype of TUI interface for saved request CRUD
- Add `--check-status` flag for TReq exit with an error if the HTTP status code indicates one.
- Check if process is piped and exclude decoration of output.
- [Documentation] - Add documentation for each file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treq.