Commits

Show all
Author Commit Message Labels Comments Date
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Update versions in docs for the various new HttpResponse features, and fixed an error on the argument list for HttpResponse.__init__.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Adds http.HttpResponseStreaming, with docs, tests, and support in four built-in middleware classes. Refs #7581.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Clean up charset-related code in HttpResponse. Refs #10190.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Merged up to r11423.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Update the render_to_response shortcut to pass request and content_type to HttpResponse, to support Accept-Charset. Refs #10190. Also updates docs.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Fixes for HttpResponse.charsets docs and HttpResponse._charset. Refs #10190.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Change the setting name to SENDFILE_HEADER and update docs. Refs #2131.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Remove setting the Content-Length header for HttpResponseSendFile from the handler, for compatibility, and add a content attribute. Refs #2131. Also adds a _charset class attribute to HttpResponse so the children all have it.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Add a how-to for using HttpResponseSendFile with various server arrangements. Refs #2131.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Merged up to r11318 from trunk.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Fix early settings use in HttpResponseSendFile. Refs #2131.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Changes for ``HttpResponseSendFile`` support in FastCGI. Refs #2131.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvments] ``HttpResponseSendFile`` now works (again?) using the X-SendFile header under the wsgi handler. refs #2131 Tests for other headers (and mod_python) are underway.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Establish the priorities and fallbacks for HttpResponseSendFile methods. Change the setting to settings.HTTPRESPONSE_SENDFILE_METHOD. If this is set to None, we use handler methods, but otherwise the header gets set, and we do not send any content. If neither of these are available, use the FileWrapper fallback in HttpResponseSendFile. This passes the test suite, but is untested on mod_python. I am still trying to figure out how to view the headers of a response with …
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Throw an exception when HttpResponse.codec is set with a bad value. Improved coverage of encoding changes in request and response headers. Refs #10190. Passes the test suite.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Add docs that I missed from the patch and reformat HttpResponse.__str__. refs #6527 This and the previous revision on this branch appear to complete all the changes from #6527.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Expects content to be iterable throughout ``HttpResponse``, with regression tests. HttpResponse.close() is now a no-op. Thanks daonb and stugots! Passes the test suite.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Fix HttpResponseSendFile indentation issue and set its initial content to be an empty string, for compatibility with ticket refs #6527.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Merged up to r12258 from trunk.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Added the codec attribute/property to HttpResponse, and added docs for recent work with charsets/codecs.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[gsoc2009/http-wsgi-improvements] Clean up imports in django.http and django.http.charsets.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] HttpResponseSendFile now uses django.core.servers.basehttp.FileWrapper inside __iter__ to provide fallback. regressiontests.sendfile uses this now, and passes. The fallback was tested using guppy and apache2 with mod_wsgi for heap issues, and it appears to be fine. We can go back and look at this again if it becomes an issue.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Refactor setting 406 status codes in HttpResponse. Accessing HttpResponse.content now evaluates the status_code for side effects.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvement] Repairs to initial regressiontests.sendfile test to fix temp file usage.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Change HttpResponse.status_code to a property, additional test coverage. Refs #10190. Improve charset coverage. Change HttpResponse.status_code to property, which checks for a 406 situation. This also required changes to all HttpResponse subclasses, so that their default status_code is set by _status_code, now. Passes regression test suite, except ones related to sendfile.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Merged up to r11176 from trunk.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Fix core.handler.BaseHandler.process_request. Indentation issue.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Initial HttpResponseSendFile support, changes pulled from 03/21/09 patch on refs #2131. This does not pass the included regression tests. However, since this feature will be entirely based on these changes, which have already gone through a great number of iterations, I thought it would be sensible to start here. All of the work here is ymasuda, mizatservercave, and mrts (apologies if I missed anyone). I hope to take their work down the final stretch.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Merged up to r11127 from trunk.
Branches
soc2009/http-wsgi-improvements
cca...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
[soc2009/http-wsgi-improvements] Modified tests/test_client_regress to expect correct behavior, which also fixes conflicts with charset handling in HttpResponse. The specific cases modified test if the test client will encode the data it posts such that when writers of test views try to use the request, the data will be in the encoding they expect from the tests cases they have written. We do not expect HttpRequest to decode the incoming content yet, so the test views have to be created beforehand so that they decode using the proper codec (which they can …
Branches
soc2009/http-wsgi-improvements
  1. Prev
  2. Next