加载中
正在获取最新内容,请稍候...
正在获取最新内容,请稍候...
gRPC-Gateway is a plugin of the Protobuf compiler that generates a reverse-proxy server which translates a RESTful HTTP API into gRPC. This allows browser clients to interact with gRPC services using standard HTTP/JSON calls.
gRPC-Gateway is an open-source tool to expose gRPC services as RESTful JSON APIs. It simplifies client-side integration for environments where native gRPC is not feasible, such as browser-based applications.
Direct gRPC calls are not easily made from web browsers or standard HTTP clients. gRPC-Gateway solves this by providing a generated HTTP API layer that acts as a bridge to your gRPC services, enabling broader client compatibility.
Generates a reverse proxy from gRPC service definitions (.proto files) that serves a RESTful HTTP API.
Automatically translates incoming HTTP/JSON requests into gRPC calls and outgoing gRPC responses back into JSON.
Supports the gRPC HTTP transcoding specification, allowing flexible mapping of HTTP methods and paths to gRPC methods.
gRPC-Gateway can be applied in various scenarios where gRPC services need to be accessed by non-gRPC clients.
Expose backend microservices built with gRPC as a public REST API for external consumers or frontend applications.
Simplifies external integration and widens the range of compatible clients.
Allow web browsers to directly interact with gRPC backend services using standard fetch or XHR calls.
Avoids the need for browser-specific gRPC client libraries or manual translation layers.
You might be interested in these projects
This project provides various components for automatically scaling applications and clusters within Kubernetes, optimizing resource utilization and ensuring performance under varying loads.
Prettier is an opinionated code formatter that enforces a consistent style across your codebase. Say goodbye to manual formatting and focus on writing code.
BillionMail provides a fully self-hosted, open-source solution for MailServer, NewsLetter, and Email Marketing, designed to be dev-friendly and free from monthly fees.