Documentation ¶
Index ¶
- func CheckContentType(contentType string) bool
- func GetContenTypeString(contentType pb.Constant_ContentType) string
- func GetContentTypeValue(header http.Header) (contentType pb.Constant_ContentType, rawContentType string, err error)
- func Marshal(msg proto.Message) (b []byte, err error)
- func Unmarshal(wrappedReq *pb.Request, msg proto.Message) (err error)
- type HTTPBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContentType ¶
CheckContentType is used to validate if the content type exists or not.
func GetContenTypeString ¶
func GetContenTypeString(contentType pb.Constant_ContentType) string
GetContenTypeString is used to convert enum value of content type to string.
func GetContentTypeValue ¶
func GetContentTypeValue(header http.Header) (contentType pb.Constant_ContentType, rawContentType string, err error)
GetContentTypeValue is used to convert content type from http request to enum value.
Types ¶
Click to show internal directories.
Click to hide internal directories.