Documentation ¶
Index ¶
Constants ¶
View Source
const (
Timeout = 5 * time.Second
)
for test
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NullResponseWriter ¶
type NullResponseWriter struct {
// contains filtered or unexported fields
}
NullResponseWriter is a struct
func NewNullResponseWriter ¶
func NewNullResponseWriter() *NullResponseWriter
NewNullResponseWriter returns a instance of NullResponseWriter
func (*NullResponseWriter) Header ¶
func (w *NullResponseWriter) Header() http.Header
Header returns headers
func (*NullResponseWriter) StatusCode ¶
func (w *NullResponseWriter) StatusCode() int
StatusCode returns a status code
func (*NullResponseWriter) Write ¶
func (w *NullResponseWriter) Write(p []byte) (int, error)
Write writes bytes to response writer
func (*NullResponseWriter) WriteHeader ¶
func (w *NullResponseWriter) WriteHeader(statusCode int)
WriteHeader updates the status code
Click to show internal directories.
Click to hide internal directories.