response

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProtoJSONEncoder

func ProtoJSONEncoder(w http.ResponseWriter, r *http.Request, v interface{}) error

ProtoJSONEncoder 编码 HTTP 响应。 仅当客户端协商结果为 JSON 且响应值为 protobuf 消息时,使用自定义 JSON 编码以数字形式输出 64 位整数。 其他场景保持 Kratos 默认 codec 行为,避免破坏内容协商和非 protobuf 响应。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL