mirror of
https://github.com/labstack/echo.git
synced 2025-03-21 21:27:04 +02:00
#407, just fixed fasthttp response writer
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
dfaaff949b
commit
030a9a4ad1
@ -182,7 +182,7 @@ func (c *context) Get(key string) interface{} {
|
||||
return c.store[key]
|
||||
}
|
||||
|
||||
// Bind binds the request body into specified type `i`. The default binder does
|
||||
// Bind binds the request body into provided type `i`. The default binder does
|
||||
// it based on Content-Type header.
|
||||
func (c *context) Bind(i interface{}) error {
|
||||
return c.echo.binder.Bind(i, c)
|
||||
|
@ -42,7 +42,7 @@ func (r *Response) WriteHeader(code int) {
|
||||
|
||||
// Write implements `engine.Response#Write` method.
|
||||
func (r *Response) Write(b []byte) (int, error) {
|
||||
return r.RequestCtx.Write(b)
|
||||
return r.writer.Write(b)
|
||||
}
|
||||
|
||||
// Status implements `engine.Response#Status` method.
|
||||
|
@ -29,7 +29,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
// New returns an instance of `fasthttp.Server` with specified listen address.
|
||||
// New returns an instance of `fasthttp.Server` with provided listen address.
|
||||
func New(addr string) *Server {
|
||||
c := engine.Config{Address: addr}
|
||||
return NewFromConfig(c)
|
||||
|
@ -27,7 +27,7 @@ type (
|
||||
}
|
||||
)
|
||||
|
||||
// New returns an instance of `standard.Server` with specified listen address.
|
||||
// New returns an instance of `standard.Server` with provided listen address.
|
||||
func New(addr string) *Server {
|
||||
c := engine.Config{Address: addr}
|
||||
return NewFromConfig(c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user