kr / webx

Crazy experimental HTTP-over-RSPDY router
12 stars 1 forks source link

move most logic to handlers, not transports #30

Closed kr closed 11 years ago

kr commented 11 years ago

An http.RoundTripper is really only for outgoing requests. During most of the routing logic (choosing a group, then choosing a backend), we are deciding what to do with the incoming user request; it hasn't yet become an outgoing request. This way is a little easier to think about and to work with.

cc @bgentry @fdr

kr commented 11 years ago

Merged.