Comments (1)
🤖
That's a great observation! It seems like the type assertion in the proxy.buildEndpoint
method is unnecessary since http.HandlerFunc
is already an implementation of http.Handler
. Removing the type assertion would simplify the code and make it more concise. If you have the time and interest, I would encourage you to create a pull request with this improvement. Your contribution would be valuable to the project. Thank you for considering to contribute!
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
from gateway.
Related Issues (20)
- no getstarted no design no arch ?what is this
- [需求]backend支持https代理 HOT 2
- 客户端grpc请求网关出错 HOT 2
- code = Unavailable desc = last connection error: connection closed before server preface received HOT 1
- kratos和gateway trace链路没有串联起来
- 什么时候发布1.0版本呢 HOT 2
- 中间件 tracing 在 HTTP 模式下没有向 Endpoint HTTP 后端传递 traceparent 头,trace 无法关联 HOT 1
- How to set middleware register sequence HOT 1
- HTTP —> GRPC请求,可以自定义请求路由 (annotations.proto注解) 吗
- auth 中间件没有吗? HOT 3
- 服务启动的时的ctrlService有开源的实现吗? HOT 1
- Hope to support https->http HOT 3
- 可以支持websocket转发吗 HOT 3
- Dockerfile 问题 HOT 1
- 添加 nginx 代理 example? HOT 1
- transcoder 中间件 grpc 判断疑似有错误 HOT 1
- [bug] metadata没赋值给node,color逻辑不起作用
- [bug]配置文件中middleware出现的顺序和实际执行顺序是相反的,建议和kratos保持一致
- middleware/logging.go There is a bug?
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 gateway.