ncr / rack-proxy

A request/response rewriting HTTP proxy. A Rack app.
MIT License
269 stars 94 forks source link

Response refactoring #21

Closed rfletcher closed 11 years ago

rfletcher commented 11 years ago

Proxy#perform_request has gotten pretty big, specifically the target_response initialization. I've refactored that part a little, removing duplication.

The only substantive change was renaming HttpStreamingResponse#status to #code, so that its API matched Net::HTTP#code. I've added an alias so that #status keeps woking, in case someone's using it externally.

rfletcher commented 11 years ago

Hrm. Looks like I branched from the wrong place. I'll resubmit.