bsed / gorilla

Automatically exported from code.google.com/p/gorilla
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

mux support multi handler #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if mux support multi handler, more code reuse or middleware. eg:

r.HandleFunc("/user/page/", IsLoginHandler, PageHandler) 
r.HandleFunc("/admin/edit/", IsLoginHandler, AdminHandler, EditHandler) 

if don't want call remain handlers or finish request, just call mux.End(req).

Original issue reported on code.google.com by chenxian...@gmail.com on 1 Aug 2012 at 2:02

Attachments:

GoogleCodeExporter commented 9 years ago
This is a good idea.

Original comment by rodrigo.moraes on 3 Aug 2012 at 9:13