forked from gocraft/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
31 lines (19 loc) · 951 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TODO:
- audit exported structures (appResponseWriter, for instance)
- refactor tests to use assertResponse
- benchmarks:
- 404 benchmark -- fn(# routes)
- 500 benchmark
- regex benchmarks (when that feature exists)
- ??? Unsure thoughts
- Wrap the request with some stuff that gives you a nice view of the params
- helpers to render JSON
- helpers to do JSON crud
- suffix capture (eg, /suggestions.:format)
- trailing slash policy
- static file server:
- slow: StaticMiddleware("public"), because all requests check filesystem
- But, most things aren't naked in public. They're in image, js, css. Or they're the favicon, or robots.txt
- StaticMiddleware("public", "favicon.ico", "robots.txt", "images", "javascripts", "stylesheets")
- If you go ahead and list root segments and files, then we can skip checking most requests
- OR, we can scan for root when we start the router.