Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBodyType ¶
ToBodyType Returns the http body type, which mainly affects color highlighting
Types ¶
type Apply ¶
type Apply interface {
Apply(*Options)
}
Apply is an interface for operating Options
func OnlyTraceFlag ¶
func OnlyTraceFlag() Apply
func TraceJSONToWriter ¶ added in v0.3.9
trace信息格式化成json输出至w
type Options ¶
type Options struct { EscapeHTML bool Write io.Writer Debug bool Color bool Trace bool FormatTraceJSON bool ReqBodyType string RspBodyType string TraceInfo }
Options Debug mode core data structure
Click to show internal directories.
Click to hide internal directories.