I noticed the package in "net/http" handler *func(ResponseWriter,
*Request) *don't have any method to expose the ResponseWriter's writen body
in my opion, if ResponseWriter have a way expose the Writen Body , i can
immplement like Java AOP cache policy
we use MakeHandler, after a user handler called(sth like wrote json in the
body), then the MakeHandler do these things:
1. check key in the cache
2. if not call the http.Handler else return the cache result
3. after called http.Handler, we can get resp body from *ResponseWriter *then
cache the body(like json)
the ResponseWriter use w *bufio.Writer // buffers output in chunks to
chunkWriter ...i have no idea to get the Writen Body..
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.