summaryrefslogtreecommitdiff
path: root/paste/wsgiwrappers.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed header assignment so value is assigned only if value is not None or ↵bbangert2006-11-021-1/+1
| | | | False. Reported by JJ. Fixes #131.
* A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ianb2006-10-201-7/+8
| | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
* Removin the dict access, updating doc strings to indicate accurate methods.bbangert2006-10-171-17/+2
|
* Added dict access to WSGIResponse object, like the doc string indicates it ↵bbangert2006-10-171-0/+12
| | | | had the whole time.
* added needed whitespace after code-blockpjenvey2006-10-061-0/+1
|
* Added file handling capability to WSGIResponse's __call__ method, ↵bbangert2006-09-111-0/+5
| | | | self.content can be a file obj when using __call__ interface.
* Added __call__ method to WSGIResponse object that conforms to WSGI spec.bbangert2006-09-111-0/+23
|
* do a case insensitive match when determining WSGIResponse's charsetpjenvey2006-09-061-1/+1
|
* deprecating WSGIResponse.has_header for HeaderDict already does case ↵pjenvey2006-09-041-5/+5
| | | | insensitive matching
* o fixed WSGIResponse to determine the correct encoding after the Content-Typepjenvey2006-09-041-7/+14
| | | | | | header was changed o defaulting the WSGIResponse charset to iso-8859-1 as per RFC2616 o fixed HeaderDict's get and setdefault to be case insensitive
* o WSGIResponse changes:0.9.8pjenvey2006-09-041-30/+92
| | | | | | | | - properly encoding any unicode content according to the response's charset - handling generator/iterator content more cleanly - fixed delete_cookie. also now takes optional path and domain args o added wsgilib.encode_unicode_app_iter: encodes an app_iterable's unicode responses as strings
* Adding module doc for wsgiwrappers.bbangert2006-09-021-0/+5
|
* use headeritems() instead of items() in WSGIResponse.pjenvey2006-08-301-2/+2
| | | | thanks jaq
* Fixing requested_with header name.bbangert2006-08-211-1/+1
|
* Fix bug in is_xhr, should be HTTP_ header.bbangert2006-08-201-1/+1
|
* Changed request.xhr to request.is_xhr which is a bool function thats true if ↵bbangert2006-08-201-1/+5
| | | | X-Requested-With is present and equal to XMLHttpRequest.
* Adding xhr attribute to WSGIRequest object.bbangert2006-08-201-0/+1
|
* renamed the multidict class to MultiDictpjenvey2006-07-251-3/+3
|
* o request.parse_formvars changes:pjenvey2006-07-241-3/+1
| | | | | | | | | | | | - now returns a multidict instead of dict (like parse_dict_querystring) - removed all_as_list keyword arg: use multidict.mixed() instead to produce an all_as_list dict - preventing FieldStorage from parsing out QUERY_STRING during GET/HEAD requests - the fake_out_cgi check wasn't careful enough about multipart/form-data content-types. Was also missing a StringIO import (r5471 broke file uploads) o evalexception's wsgiapp decorator assumed parse_formvars would return GET vars during a GET (buggy behavior), now it explicitly asks for them
* having WSGIResponse.params return a multidictpjenvey2006-07-201-2/+2
|
* Changed usage of MultiDict to util.multidictianb2006-07-191-2/+3
|
* Added copyright header to a bunch of filesianb2006-06-131-0/+2
|
* docstring fixupianb2006-04-241-4/+3
|
* Switched to holding content as an array internallybbangert2006-03-211-5/+5
|
* Removed LazyCache, cause it didn't work, and should use environ to cache the ↵bbangert2006-03-191-22/+1
| | | | values anyways
* Moved WSGIRequest from request -> wsgiwrappers. Created WSGIResponse object ↵bbangert2006-03-191-0/+253
in wsgiwrappers.