package fasthttp import ( "io" "github.com/labstack/echo/engine" "github.com/valyala/fasthttp" ) type ( Response struct { response *fasthttp.RequestCtx header engine.Header status int size int64 committed bool writer io.Writer } ) func (r *Response) Object() interface{} { return r.response } func (r *Response) Header() engine.Header { return r.header } func (r *Response) WriteHeader(code int) { r.response.SetStatusCode(code) } func (r *Response) Write(b []byte) (int, error) { return r.response.Write(b) } func (r *Response) Status() int { return r.status } func (r *Response) Size() int64 { return r.size } func (r *Response) Committed() bool { return r.committed } func (r *Response) SetWriter(w io.Writer) { r.writer = w } func (r *Response) Writer() io.Writer { return r.writer }