Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SpyResponseWriter ¶
type SpyResponseWriter struct {
// contains filtered or unexported fields
}
SpyResponseWriter checks whether a response has been written.
func (*SpyResponseWriter) Header ¶
func (s *SpyResponseWriter) Header() http.Header
Header will mark written to true.
func (*SpyResponseWriter) Write ¶
func (s *SpyResponseWriter) Write([]byte) (int, error)
Write will mark written to true.
func (*SpyResponseWriter) WriteHeader ¶
func (s *SpyResponseWriter) WriteHeader(statusCode int)
WriteHeader will mark written to true.
Click to show internal directories.
Click to hide internal directories.