tylerhunt/rack-canonical-host — pull request #28 by nbibler (2014-11-07 18:28:59+00:00)
Title: Memoize the request_uri construction for subsequent calls

The `Redirect` object makes fairly liberal use of a local `request_uri` method. However, that method is not memoized and creates new Addressable objects which each query just to pull some attribute off of the URI object. Since the entire `Redirect` instance is stateful and seemingly intended to be immutable, I've memoized the `request_uri` call here.