Documentation ¶
Index ¶
- type ClearableBufferedResponse
- type ClearableBufferedResponseWriter
- func (bw *ClearableBufferedResponseWriter) Buffer() *bytes.Buffer
- func (bw *ClearableBufferedResponseWriter) Clear()
- func (bw *ClearableBufferedResponseWriter) Finalize()
- func (bw *ClearableBufferedResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (bw *ClearableBufferedResponseWriter) Push(target string, opts *http.PushOptions) error
- func (bw *ClearableBufferedResponseWriter) Write(b []byte) (int, error)
- func (bw *ClearableBufferedResponseWriter) WriteHeader(code int)
- func (bw *ClearableBufferedResponseWriter) Writer() http.ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearableBufferedResponse ¶
type ClearableBufferedResponse interface { http.ResponseWriter Clear() Buffer() *bytes.Buffer Writer() http.ResponseWriter Finalize() }
BufferedResponseWriter is a buffered response writer.
func NewClearable ¶
func NewClearable(w http.ResponseWriter) ClearableBufferedResponse
type ClearableBufferedResponseWriter ¶
type ClearableBufferedResponseWriter struct { http.ResponseWriter Buf *bytes.Buffer Code int WroteHeader bool }
ClearableBufferedResponseWriter is a buffered response writer that can be cleared.
func (*ClearableBufferedResponseWriter) Buffer ¶
func (bw *ClearableBufferedResponseWriter) Buffer() *bytes.Buffer
func (*ClearableBufferedResponseWriter) Clear ¶
func (bw *ClearableBufferedResponseWriter) Clear()
func (*ClearableBufferedResponseWriter) Finalize ¶
func (bw *ClearableBufferedResponseWriter) Finalize()
func (*ClearableBufferedResponseWriter) Hijack ¶
func (bw *ClearableBufferedResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)
func (*ClearableBufferedResponseWriter) Push ¶
func (bw *ClearableBufferedResponseWriter) Push(target string, opts *http.PushOptions) error
func (*ClearableBufferedResponseWriter) Write ¶
func (bw *ClearableBufferedResponseWriter) Write(b []byte) (int, error)
func (*ClearableBufferedResponseWriter) WriteHeader ¶
func (bw *ClearableBufferedResponseWriter) WriteHeader(code int)
func (*ClearableBufferedResponseWriter) Writer ¶
func (bw *ClearableBufferedResponseWriter) Writer() http.ResponseWriter
Click to show internal directories.
Click to hide internal directories.