Comments (8)
as i understand that drpc does not send any http2 headers by default so its not possible to determine how to handle this request in this combo server ?
does it possible to handle native drpc client without drpcmigrate client helper that sends special bytes before data?
from drpc.
What do you mean by "native drpc client?" Since it's going through http, something has to exist to map the http request into a drpc stream, which is a drpchttp.Protocol with the built in ones defined here. There's no built in way for a drpc client to wrap a request into an http request, though.
from drpc.
Let me explain - with grpc i can handle incoming grpc connections to http2 server. Parse incoming stream data and get service/method and payload.
With drpc - i cant handle simple drpc connection created with tcp connect and drpc.New()
from drpc.
how can i create drpc connection to http based drpc server that can switch protocol by content-type header ?
from drpc.
may be i need to create drpc.Transport that utilise http1/http2 connection?
from drpc.
can you add to drpchttp transport that uses http connection for drpc?
from drpc.
One option might be to use a websocket based transport like https://pkg.go.dev/go.bryk.io/pkg/net/drpc/ws
from drpc.
This will be a tracking issue to extend the drpchttp package to include a client that wraps an http.Transport or something. It may be limited to unitary streams. It'd be cool if it worked against twirp or grpc-web servers as well as the basic drpchttp server.
from drpc.
Related Issues (20)
- Kubernetes deployment advice HOT 2
- Incorrect JSON deser in HTTP example
- Allow maximum payload size to be configurable HOT 8
- Question: how to do the load balancing? HOT 6
- buffered Writer causes data races with net.Pipe HOT 2
- Support for custom codec? HOT 4
- drpcserver: Find alternative to net.Error.IsTemporary because it's depcrated HOT 1
- Reconnect client to server HOT 3
- Context cancellation closes the connection HOT 16
- migration steps HOT 3
- What is the max message size handling approach? HOT 6
- Tag stable releases HOT 1
- Better example docs
- maximum number of connections HOT 3
- logging addresses HOT 2
- debug logging HOT 2
- Data race during Stream.MsgRecv vs drpcmanager.NewWithOptions HOT 4
- Client load balancing HOT 1
- What does the "D" stand for? HOT 2
- picobuf compatibility with regards to Marshal and Unmarshal.
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 drpc.