Comments (7)
What convenience methods do you mean?
Also, I'd forgotten to update the benchmarks since adding the use of BufferedWriter and BufferedReader, which dropped hyper's ns/iter to ~170000. I'll update the readme.
from hyper.
Hrm, I did reach that number a few days ago, but current benchmarks are back around ~230k...
from hyper.
Still, what is meant by "client ergonomics" in this issue?
from hyper.
I personally prefer the method chaining API offered by curl, considering that most requests are made and sent all at once and not modified by a large number of different functions like a server request.
I have a rough sketch of this API in one of my branches, I'll probably make a PR later today.
from hyper.
My thoughts are that the httplibrary should provide the basic blocks,
having an efficient api using Writers. Then, I considered the main module
to have a nice request builder interface, for doing simple requests. But
the building blocks are still there for people to extend on.
On Sep 10, 2014 11:28 AM, "Jonathan Reem" [email protected] wrote:
I personally prefer the method chaining API offered by curl, considering
that most requests are made and sent all at once and not modified by a
large number of different functions like a server request.I have a rough sketch of this API in one of my branches, I'll probably
make a PR later today.—
Reply to this email directly or view it on GitHub
#11 (comment).
from hyper.
Hmm. I sort of agree with this, that means we just leave room for a "smoother" library on top of this. Closing.
from hyper.
I've considered possibly having a RequestBuilder
pattern for the client, exposed from hyper::request()
... but it also seems like something a higher level library could do. With the raw Request/Response blocks exposed, different APIs can be built, regardless.
from hyper.
Related Issues (20)
- Pick a default for HTTP/2 server max concurrent streams
- Allow client IO to be !Send
- C API deadlock in hyper_executor::poll_next HOT 2
- eliminates unnecessary ping when the connection is idle
- `Server::bind` method not found HOT 2
- add a comment to make good use of `rust-analyzer`
- Decide what to do about a missing `Timer`
- Can't build with fresh checkout HOT 4
- Configurable lowest allowed speeds. HOT 1
- publishing hyper-util? HOT 2
- Revamp the website guides HOT 2
- Missing impl Read/Write for Pin<P>
- hyper-util: move connect under legacy module? HOT 1
- Add a example using tests like httptest for mock HOT 1
- hyper-util's docs are rendered without any features enabled HOT 1
- Hyper 0.14.27 deprecated/backports features don't produce any warnings, but can't upgrade to hyper 1.0 HOT 3
- UnexpectedEof Error on HTTP/2 Requests with Rustls HOT 16
- Error serving connection: hyper::Error(Http2, Error { kind: GoAway(b"", PROTOCOL_ERROR, Library) }) HOT 4
- Make send_file example streaming HOT 3
- hyper-util: add (tokio) Server struct and builder (inspired by Hyper 0.14) HOT 2
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 hyper.