Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestLogger ¶
RequestLogger sets up a post-request handler to log out the request.
Types ¶
type ResponseWriterWrapper ¶
type ResponseWriterWrapper interface { http.ResponseWriter // Status returns the HTTP status of the request, or 0 if one has not // yet been sent. Status() int // BytesWritten returns the total number of bytes sent to the client. BytesWritten() int // Unwrap returns the original proxied target. Unwrap() http.ResponseWriter }
ResponseWriterWrapper is a proxy around an http.ResponseWriter that allows you to hook into various parts of the response process.
func WrapWriter ¶
func WrapWriter(w http.ResponseWriter) ResponseWriterWrapper
WrapWriter wraps an http.ResponseWriter in a proxy that implements the ResponseWriterWrapper interface.
Click to show internal directories.
Click to hide internal directories.