Documentation ¶
Index ¶
- Variables
- func HeaderEncode(h http.Header) string
- func HeaderToHttpOption(h http.Header) []curl.Option
- func MarshalNoEscapeHTML(v interface{}) ([]byte, error)
- func Nonce(size uint) string
- func NonceByte(size uint) []byte
- type ReqLog
- func (l *ReqLog) Do(ctx context.Context, log func(ctx context.Context, data map[string]string))
- func (l *ReqLog) Set(k, v string)
- func (l *ReqLog) SetReqBody(v string)
- func (l *ReqLog) SetReqHeader(h http.Header)
- func (l *ReqLog) SetRespBody(v string)
- func (l *ReqLog) SetRespHeader(h http.Header)
- func (l *ReqLog) SetStatusCode(code int)
- type X
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func HeaderEncode ¶
func MarshalNoEscapeHTML ¶
MarshalNoEscapeHTML 不带HTML转义的JSON序列化
Types ¶
Click to show internal directories.
Click to hide internal directories.