httpproto

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBodyCodec

func GetBodyCodec(contentType string, defCodecID byte) byte

GetBodyCodec 根据 ContentType 获取对应的编解码器

func GetContentType

func GetContentType(codecID byte, defContentType string) string

GetContentType 通过编解码器获取对应的ContentType

func NewHTTProtoFunc

func NewHTTProtoFunc(printMessage ...bool) proto.ProtoFunc

NewHTTProtoFunc 创建http协议支持

Only support t filter : gzip
Must use HTTP service method mapper

func RegBodyCodec

func RegBodyCodec(contentType string, codecID byte)

RegBodyCodec 注册新的编解码器

Types

This section is empty.

Jump to

Keyboard shortcuts

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