Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMethodInfo ¶ added in v0.0.34
func LogRequest ¶
func LogRequest(params LogRequestParams)
Types ¶
type LogRequestParams ¶
type ResponseWriter ¶ added in v0.0.34
type ResponseWriter struct {
http.ResponseWriter
StatusCode int
Buf *bytes.Buffer
}
ResponseWriter is a custom response writer that buffers the response body and tracks the status code.
func NewResponseWriter ¶ added in v0.0.34
func NewResponseWriter(w http.ResponseWriter) *ResponseWriter
func (*ResponseWriter) Write ¶ added in v0.0.34
func (w *ResponseWriter) Write(b []byte) (int, error)
func (*ResponseWriter) WriteHeader ¶ added in v0.0.34
func (w *ResponseWriter) WriteHeader(code int)
Click to show internal directories.
Click to hide internal directories.