You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that embedded-svc's http service abstraction is not as mature or robust as the http crate. Is there any reason to not use the http crate directly?
The text was updated successfully, but these errors were encountered:
The http crate does not offer any service abstraction (traits). Please point these to me if I've missed them. What it offers instead are concrete utility types for stuff like headers, request parameters and so on. My take on these is that if you are implementing an HTTP server or client from scratch, you might consider utilizing those, but they would otherwise be a poor choice for abstracting an existing HTTP service in the embedded space, as they use allocations all over the place.
Sorry, I wasn't clear and used incorrect language (and I'm not too familiar with this project or embedded so feel free to tell me to go away!)
In this project's http mod, concrete stuff like Headers, Method, and Status are defined. Those are also defined in http AFAIK, though I am not sure which require std. Additionally, in the http service definition of this crate many of the apis are "stringly" typed, which is usually a codesmell and perhaps using http's implementations where possible would add some type safety.
It seems that
embedded-svc
's http service abstraction is not as mature or robust as thehttp
crate. Is there any reason to not use thehttp
crate directly?The text was updated successfully, but these errors were encountered: