Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Eliminate warnings for AM on 1.8 | wycats | 2010-03-16 | 1 | -1/+0 | |
| | ||||||
* | Remove uneeded methods. | José Valim | 2010-03-10 | 1 | -15/+0 | |
| | ||||||
* | Add memoizing to AD::Request | Carlhuda | 2010-03-08 | 1 | -0/+8 | |
| | ||||||
* | Add caller to request_uri deprecation notice | Carlhuda | 2010-03-03 | 1 | -1/+1 | |
| | ||||||
* | Move remote_ip to a middleware: | Carlhuda | 2010-03-03 | 1 | -30/+1 | |
| | | | | | * ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check * ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies | |||||
* | ActionDispatch::Request deprecates #request_uri | Carl Lerche | 2010-03-03 | 1 | -10/+3 | |
| | | | | * Refactored ActionPatch to use fullpath instead | |||||
* | Rack::Request actually defines #query_string | Carl Lerche | 2010-03-03 | 1 | -5/+0 | |
| | ||||||
* | Tweak the semantic of various URL related methods of ActionDispatch::Request | Carlhuda | 2010-03-03 | 1 | -25/+6 | |
| | ||||||
* | Request#subdomain returns a string version of Request#subdomains | Joshua Peek | 2010-02-28 | 1 | -0/+4 | |
| | ||||||
* | Set the body using the accessor for AD::Response introspection mode so it ↵ | Carlhuda | 2010-02-26 | 1 | -1/+2 | |
| | | | | gets wrapped in a [] | |||||
* | Make AD::Response correctly handle bodies that respond_to?(:to_path) as per ↵ | Carlhuda | 2010-02-23 | 1 | -0/+12 | |
| | | | | the Rack spec | |||||
* | Store compiled parameter filters so we don't have to compile them in each ↵ | José Valim | 2010-02-21 | 1 | -25/+40 | |
| | | | | request. | |||||
* | Fix a bunch of pending tests by providing an introspection mode for the ↵ | Carlhuda | 2010-02-19 | 2 | -18/+39 | |
| | | | | Response object that does up-front parsing of the headers to populate things like @etag | |||||
* | Make filter parameters based on request, so they can be modified for ↵ | José Valim | 2010-01-21 | 1 | -62/+66 | |
| | | | | anything in the middleware stack. | |||||
* | Tidy up new filter_parameters implementation. | José Valim | 2010-01-21 | 3 | -89/+95 | |
| | ||||||
* | Move filter_parameter_logging logic out of the controller and create ↵ | Prem Sichanugrist | 2010-01-21 | 3 | -23/+89 | |
| | | | | | | ActionDispatch::ParametersFilter to handle parameter filteration instead. This will make filteration not depending on controller anymore. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Request#filter_parameters and filter_env | Joshua Peek | 2010-01-20 | 1 | -2/+24 | |
| | ||||||
* | Cookies middleware | Joshua Peek | 2010-01-16 | 1 | -1/+1 | |
| | ||||||
* | Split ActionDispatch http in smaller chunks. | José Valim | 2010-01-16 | 7 | -430/+480 | |
| | ||||||
* | Move Flash into middleware | Joshua Peek | 2010-01-15 | 1 | -4/+0 | |
| | ||||||
* | Make HEAD method masquerade as GET so requests are routed correctly | Joshua Peek | 2010-01-15 | 1 | -5/+7 | |
| | ||||||
* | Make sure evalled method knows where it came from | Yehuda Katz | 2009-12-29 | 1 | -2/+2 | |
| | ||||||
* | Silence some trivial warnings: shadowed local vars, indentation mismatches | Jeremy Kemper | 2009-12-28 | 2 | -8/+8 | |
| | ||||||
* | Referer and user agent are in Rack::Request | Joshua Peek | 2009-12-22 | 1 | -1/+1 | |
| | ||||||
* | AD::StatusCodes support is now part of rack | Joshua Peek | 2009-12-22 | 2 | -35/+2 | |
| | ||||||
* | We don't need AD parse_config | Joshua Peek | 2009-12-20 | 1 | -20/+0 | |
| | ||||||
* | AC::Head now doesn't have an unfulfilled Rendering dependency, and instead ↵ | Yehuda Katz | 2009-12-20 | 2 | -1/+9 | |
| | | | | works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency) | |||||
* | Added ActionDispatch::Request#authorization to access the http ↵ | David Heinemeier Hansson | 2009-12-20 | 1 | -0/+9 | |
| | | | | authentication header regardless of its proxy hiding [DHH] | |||||
* | Pending tests for AD Response | Joshua Peek | 2009-12-17 | 1 | -13/+12 | |
| | ||||||
* | Fix warnings in AD::Response | Joshua Peek | 2009-12-14 | 1 | -0/+3 | |
| | ||||||
* | Allow autoloads to opt out of eager loading | Joshua Peek | 2009-12-12 | 1 | -1/+2 | |
| | ||||||
* | Reduce usage of interpret_status. It should also return a integer | Joshua Peek | 2009-12-10 | 1 | -17/+0 | |
| | | | | not a string. | |||||
* | Ensure Cache-Control max-age is an integer | Jeremy Kemper | 2009-12-02 | 1 | -1/+1 | |
| | ||||||
* | Response#write is defined twice (this is why -w is good) | Joshua Peek | 2009-12-01 | 1 | -6/+0 | |
| | ||||||
* | Response#cache_control is defined later | Joshua Peek | 2009-12-01 | 1 | -1/+0 | |
| | ||||||
* | Ruby 1.9.2: StringIO no longer has #path | Jeremy Kemper | 2009-11-13 | 1 | -1/+1 | |
| | ||||||
* | Object#tap is not needed for Ruby >= 1.8.7 | Xavier Noria | 2009-11-09 | 1 | -1/+0 | |
| | ||||||
* | Unknown :format param should result in empty request.formats | Jeremy Kemper | 2009-11-08 | 1 | -1/+1 | |
| | ||||||
* | Break up inflector to reduce the dependency burden on dependency-les methods ↵ | Yehuda Katz | 2009-11-07 | 1 | -0/+1 | |
| | | | | like constantize. | |||||
* | Caching refactoring | Yehuda Katz | 2009-10-29 | 1 | -5/+1 | |
| | ||||||
* | Reduce TextTemplate cost for simple cases | Yehuda Katz | 2009-10-28 | 1 | -0/+1 | |
| | ||||||
* | Reorganize CSRF a bit | Yehuda Katz | 2009-10-28 | 1 | -0/+4 | |
| | ||||||
* | Fixes expires_now and cleans things up a bit | Yehuda Katz | 2009-10-26 | 2 | -12/+11 | |
| | ||||||
* | Avoid super in define_method for Rubinius | Yehuda Katz | 2009-10-09 | 1 | -1/+6 | |
| | ||||||
* | Extract "parse_config" into AD | Joshua Peek | 2009-09-25 | 1 | -0/+20 | |
| | ||||||
* | SessionRestoreError belongs in AD | Joshua Peek | 2009-09-23 | 1 | -4/+4 | |
| | ||||||
* | ActionController::Metal can be a middleware | Yehuda Katz + Carl Lerche | 2009-08-25 | 1 | -1/+4 | |
| | ||||||
* | Got tests to pass with some more changes. | Yehuda Katz | 2009-08-15 | 1 | -24/+12 | |
| | | | | | | | | | | | | | | | | * request.formats is much simpler now * For XHRs or Accept headers with a single item, we use the Accept header * For other requests, we use params[:format] or fallback to HTML * This is primarily to work around the fact that browsers provide completely broken Accept headers, so we have to whitelist the few cases we can specifically isolate and treat other requests as coming from the browser * For APIs, we can support single-item Accept headers, which disambiguates from the browsers * Requests to an action that only has an XML template from the browser will no longer find the template. This worked previously because most browsers provide a catch-all */*, but this was mostly accidental behavior. If you want to serve XML, either use the :xml format in links, or explicitly specify the XML template: render "template.xml". | |||||
* | More perf work: | Yehuda Katz | 2009-08-11 | 2 | -58/+63 | |
| | | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare! | |||||
* | Got overhead down from 127 to 85. All tests pass: | Yehuda Katz | 2009-08-11 | 1 | -36/+56 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string. |