Documentation ¶
Index ¶
- func NewRequest(reqs ...*http.Request) engine.Request
- func NewResponseWriter(w *http.Response) http.ResponseWriter
- type Request
- type Response
- func (r *Response) Body() []byte
- func (r *Response) Committed() bool
- func (r *Response) Error(errMsg string, args ...int)
- func (r *Response) Flush()
- func (r *Response) Header() engine.Header
- func (r *Response) Hijack() (net.Conn, *bufio.ReadWriter, error)
- func (r *Response) Hijacker(fn func(net.Conn)) error
- func (r *Response) KeepBody(on bool)
- func (r *Response) NotFound()
- func (r *Response) Object() interface{}
- func (r *Response) Redirect(url string, code int)
- func (r *Response) Reset(w http.ResponseWriter, req *http.Request)
- func (r *Response) ServeContent(content io.ReadSeeker, name string, modtime time.Time)
- func (r *Response) ServeFile(file string)
- func (r *Response) SetCookie(cookie *http.Cookie)
- func (r *Response) SetWriter(w io.Writer)
- func (r *Response) Size() int64
- func (r *Response) Status() int
- func (r *Response) StdResponseWriter() http.ResponseWriter
- func (r *Response) Stream(step func(io.Writer) (bool, error)) error
- func (r *Response) Write(b []byte) (n int, err error)
- func (r *Response) WriteHeader(code int)
- func (r *Response) Writer() io.Writer
- type ResponseWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResponseWriter ¶
func NewResponseWriter(w *http.Response) http.ResponseWriter
Types ¶
type Response ¶
type Response struct { http.ResponseWriter // contains filtered or unexported fields }
func NewResponse ¶
func NewResponse(args ...interface{}) *Response
func (*Response) ServeContent ¶
func (*Response) StdResponseWriter ¶
func (r *Response) StdResponseWriter() http.ResponseWriter
func (*Response) WriteHeader ¶
type ResponseWriter ¶
func (*ResponseWriter) Bytes ¶
func (w *ResponseWriter) Bytes() []byte
func (*ResponseWriter) Header ¶
func (w *ResponseWriter) Header() http.Header
func (*ResponseWriter) String ¶
func (w *ResponseWriter) String() string
func (*ResponseWriter) WriteHeader ¶
func (w *ResponseWriter) WriteHeader(statusCode int)
Click to show internal directories.
Click to hide internal directories.