Giter Site home page Giter Site logo

Client Ergonomics about hyper HOT 7 CLOSED

hyperium avatar hyperium commented on April 28, 2024
Client Ergonomics

from hyper.

Comments (7)

seanmonstar avatar seanmonstar commented on April 28, 2024

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.

seanmonstar avatar seanmonstar commented on April 28, 2024

Hrm, I did reach that number a few days ago, but current benchmarks are back around ~230k...

from hyper.

seanmonstar avatar seanmonstar commented on April 28, 2024

Still, what is meant by "client ergonomics" in this issue?

from hyper.

reem avatar reem commented on April 28, 2024

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.

seanmonstar avatar seanmonstar commented on April 28, 2024

My thoughts are that the httplibrary 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.

reem avatar reem commented on April 28, 2024

Hmm. I sort of agree with this, that means we just leave room for a "smoother" library on top of this. Closing.

from hyper.

seanmonstar avatar seanmonstar commented on April 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.