Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoTestHTTP ¶
func DoTestHTTP(t *testing.T, data TestDataHTTP)
func ProcessError ¶
Types ¶
type ChunkedWriter ¶
type ChunkedWriter struct {
// contains filtered or unexported fields
}
func NewChunkedWriter ¶
func NewChunkedWriter(w http.ResponseWriter) (*ChunkedWriter, error)
func (*ChunkedWriter) Flush ¶
func (w *ChunkedWriter) Flush()
func (*ChunkedWriter) WriteString ¶
func (w *ChunkedWriter) WriteString(data string)
type TestDataHTTP ¶
type Writer ¶
type Writer struct {
http.ResponseWriter
ErrorMessage string
StatusCode int
}
func NewWriter ¶
func NewWriter(w http.ResponseWriter) *Writer
func (*Writer) WriteHeader ¶
Click to show internal directories.
Click to hide internal directories.