easyhttprespbody

package module
v0.0.0-...-7792c53 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(obj interface{}, opts ...Option) easyhttp.Interceptor

func Object

func Object(obj interface{}, opts ...Option) easyhttp.Interceptor

func Protobuf

func Protobuf(obj proto.Message, opts ...Option) easyhttp.Interceptor

func XML

func XML(obj interface{}, opts ...Option) easyhttp.Interceptor

Types

type Option

type Option func(o *options)

func Accept

func Accept(contentType string) Option

func CheckContentType

func CheckContentType() Option

func UnmarshalFunc

func UnmarshalFunc(unmarshalFunc func(data []byte, v interface{}) error) Option

Jump to

Keyboard shortcuts

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