mirror of
https://github.com/labstack/echo.git
synced 2025-02-03 13:11:39 +02:00
Godoc updated
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
562173f89d
commit
237070a674
@ -68,13 +68,17 @@ type (
|
||||
WriteTimeout time.Duration
|
||||
}
|
||||
|
||||
// Handler defines an interface to server HTTP requests via `ServeHTTP(Request, Response)`
|
||||
// function.
|
||||
Handler interface {
|
||||
ServeHTTP(Request, Response)
|
||||
}
|
||||
|
||||
// HandlerFunc is an adapter to allow the use of `func(Request, Response)` as HTTP handlers.
|
||||
HandlerFunc func(Request, Response)
|
||||
)
|
||||
|
||||
// ServeHTTP serves HTTP request.
|
||||
func (h HandlerFunc) ServeHTTP(req Request, res Response) {
|
||||
h(req, res)
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ us to use HTTP servers beyond Go standard library. It currently supports standar
|
||||
- Middleware is run before hitting the router, which doesn't require `Echo#Hook` API as
|
||||
it can be achieved via middleware.
|
||||
- Ability to define middleware at route level.
|
||||
- `Echo#HTTPError` exposed it's fields `Code` and `Message`.
|
||||
|
||||
#### How?
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
---
|
||||
title: Google App Engine
|
||||
draft: true
|
||||
menu:
|
||||
side:
|
||||
parent: recipes
|
||||
|
Loading…
x
Reference in New Issue
Block a user