1
0
mirror of https://github.com/labstack/echo.git synced 2025-06-25 00:47:01 +02:00

Added response already committed logic

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-03-06 11:12:33 -08:00
parent 91bbd38251
commit 05e8fee3de
5 changed files with 57 additions and 33 deletions

View File

@ -3,7 +3,6 @@ package bolt
import (
"fmt"
"net/http"
"sort"
"sync"
)
@ -66,22 +65,6 @@ func (n *node) findEdge(l byte) *node {
return nil
}
func (e edges) Len() int {
return len(e)
}
func (e edges) Swap(i, j int) {
e[i], e[j] = e[j], e[i]
}
func (e edges) Less(i, j int) bool {
return e[i].label < e[j].label
}
func (e edges) Sort() {
sort.Sort(e)
}
func (r *router) Add(method, path string, h HandlerFunc) {
i := 0
l := len(path)