1. 07 10月, 2015 3 次提交
    • A
      use methods for accessing the cache control headers · 895c3591
      Aaron Patterson 提交于
      Use the methods rack provides so we don't have to worry about the exact
      header key.
      895c3591
    • A
      etag header is in Rack, so use it's response methods · cddb700c
      Aaron Patterson 提交于
      Rack implements the Etag header manipulation methods, so we can use
      those instead of ours.
      cddb700c
    • J
      Use `Mime[:foo]` instead of `Mime::Type[:FOO]` for back compat · 565094a8
      Jeremy Daer 提交于
      Rails 4.x and earlier didn't support `Mime::Type[:FOO]`, so libraries
      that support multiple Rails versions would've had to feature-detect
      whether to use `Mime::Type[:FOO]` or `Mime::FOO`.
      
      `Mime[:foo]` has been around for ages to look up registered MIME types
      by symbol / extension, though, so libraries and plugins can safely
      switch to that without breaking backward- or forward-compatibility.
      
      Note: `Mime::ALL` isn't a real MIME type and isn't registered for lookup
      by type or extension, so it's not available as `Mime[:all]`. We use it
      internally as a wildcard for `respond_to` negotiation. If you use this
      internal constant, continue to reference it with `Mime::ALL`.
      
      Ref. efc6dd55
      565094a8
  2. 06 10月, 2015 1 次提交
    • A
      move file sending to the response object · 69009f44
      Aaron Patterson 提交于
      Just a slight refactor that delegates file sending to the response
      object.  This gives us the advantage that if a webserver (in the future)
      provides a response object that knows how to do accelerated file
      serving, it can implement this method.
      69009f44
  3. 04 10月, 2015 1 次提交
  4. 02 10月, 2015 1 次提交
  5. 29 9月, 2015 2 次提交
  6. 28 9月, 2015 1 次提交
  7. 26 9月, 2015 4 次提交
  8. 25 9月, 2015 3 次提交
  9. 24 9月, 2015 1 次提交
    • A
      stop applying default headers in ActionDispatch::Response · e16afe61
      Aaron Patterson 提交于
      I'm making this change so that I can construct response objects that
      *don't* have the default headers applied.  For example, I would like to
      construct a response object from the return value of a controller.
      
      If you need to construct a response object with the default headers,
      then please use the alternate constructor:
      `ActionDispatch::Response.create`
      e16afe61
  10. 23 9月, 2015 2 次提交
  11. 22 9月, 2015 9 次提交
  12. 19 9月, 2015 6 次提交
  13. 15 9月, 2015 2 次提交
  14. 09 9月, 2015 4 次提交