Git Product home page Git Product logo

Comments (4)

q-b avatar q-b commented on May 24, 2024 1

Quick update:

from ruma.

jplatte avatar jplatte commented on May 24, 2024

Status: We're not currently using hyper::Body anymore but Vec<u8> instead. Whether to go with http-service or http-body is still very unclear, but since serde_json currently doesn't support streaming deserialization of a single large json object anyway, we're not likely to see any performance improvements from switching back to a streaming body type.

from ruma.

jimmycuadra avatar jimmycuadra commented on May 24, 2024

Related: The hyper 0.13 announcement post talks about making it easier to make libraries agnostic to HTTP client using Tower as the trait interface. That might end up being the way forward since http_service seems to be DOA.

from ruma.

jplatte avatar jplatte commented on May 24, 2024

Since there's now both http and http-types, and virtually nobody is adopting the http crate as part of their public API, I think we need to go one step further and stop relying on the http crate entirely. I hope it won't be too hard to figure out a decent abstraction for our needs of HTTP requests and responses that can be implemented for all types we care about.

I've opened #389 for that.

from ruma.

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.