Comments (8)
It appears that these changes have landed.
from hyperlocal.
I've already started a local branch for this. The client was actually really easy to implement ( easier than I thought ). The server listener is proving to be more difficult. Mostly because there aren't may examples of documentation of how to customize the server's listening backend with the newer model
from hyperlocal.
Would you mind sharing the client-only changes?
from hyperlocal.
Sure I'll push up a branch tonight. In the meantime I reached out to the hyper maintainers to see if I could get some insight on extending the new server model
from hyperlocal.
this is what I have so far. I have the client working in an example here still working on getting the server bits line up
from hyperlocal.
Thank you, I've playing around with this code, but I'm getting errors such as:
error[E0599]: no method named `build` found for type `hyper::client::Config<uds::UnixSocketConnector, hyper::Body>` in the current scope
--> src/collector.rs:181:7
|
181 | .build(&core.handle.as_ref().borrow().clone()))
| ^^^^^
|
= note: the method `build` exists but the following trait bounds were not satisfied:
`uds::UnixSocketConnector : hyper::client::Connect`
I'm on hyper 0.11.2, and it seems like hyper::client::Connect trait needs implementation, not service for the client?
Which is interesting since Hyper::client::Connect has the following comments for Connect trait:
/// A connector creates an Io to a remote address..
///
/// This trait is not implemented directly, and only exists to make
/// the intent clearer. A connector should implement `Service` with
/// `Request=Uri` and `Response: Io` instead.
pub trait Connect: Service<Request=Uri, Error=io::Error> + 'static {
from hyperlocal.
Hoping to get a chance to followup this weekend
from hyperlocal.
async hyper 0.11 support is now on master. see the examples directory for an example client and server usage
from hyperlocal.
Related Issues (20)
- Update for hyper 0.12? HOT 4
- Impl drop for server which deletes the associated socket file
- cannot use with tokio::run() HOT 6
- Backport hyperlocal windows HOT 4
- low level example server is broken HOT 3
- README.md example is out of date HOT 1
- Incorrect Host header is set HOT 1
- SocketIncoming is not exported HOT 2
- Does not compile if client-only
- UnixListener::from_std causes the server to hang HOT 1
- http paths errors HOT 8
- Thoughts about making UnixStream public HOT 3
- Body is dropped HOT 1
- RFC: Release 0.9 HOT 5
- Client access websocket without proxy
- Connection socket does not shut down cleanly HOT 1
- is this still maintained ? HOT 2
- Work greetly with axum, but not required in hyper 1.0 HOT 2
- Cargo release 0.9.0 HOT 20
- Vulnerability GHSA-q6cp-qfwq-4gcv in hyperlocal's dependency - h2 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 hyperlocal.