Comments (4)
Quick update:
- http-service is deprecated, tide use http_types::Body.
- http-body does not seems really active.
- http::Request allow arbitrary types to represent the HTTP body.
from ruma.
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.
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.
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)
- Be able to interpret `unstable_features`
- JsonWebKey should be independent of Ruma HOT 3
- set_pushrule request uses the wrong HTTP method (GET instead of PUT) HOT 3
- Implement `AsRef<T> for T` for borrowed identifier types
- Why are CustomEventContent fields private? HOT 3
- Error parsing error response for `POST /_matrix/client/v3/keys/signatures/upload` HOT 5
- Make DST ID types less awkward under the `Arc` ID representation HOT 4
- Implement Matrix 1.8 changes
- Relax validation of identifiers for clients HOT 2
- Implement Matrix 1.9 changes
- There's no way to get the name of the algorithm out of the `SecretEncryptionAlgorithm` struct HOT 1
- `cargo doc` fails to document `ruma_events` HOT 1
- Release automation does not pick up release notes if skipping all previous steps
- Add call.notify event (MSC4075)
- `m.direct` account data parsing should be more lenient HOT 2
- The `strike` and `font` HTML elements are deprecated and `s` is introduced HOT 1
- Implement Matrix 1.10 changes HOT 1
- Inconsistent m.call.candidates candidate definition
- Upgrade http to version 1.x HOT 6
- Upgrade html5ever 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 ruma.