Package django :: Package http
[hide private]
[frames] | no frames]

Package http

source code

Submodules [hide private]

Classes [hide private]
  Http404
  HttpRequest
A basic HTTP request
  QueryDict
A specialized MultiValueDict that takes a query string when initialized.
  HttpResponse
A basic HTTP response, with content and dictionary-accessed headers
  HttpResponseRedirect
  HttpResponsePermanentRedirect
  HttpResponseNotModified
  HttpResponseBadRequest
  HttpResponseNotFound
  HttpResponseForbidden
  HttpResponseNotAllowed
  HttpResponseGone
  HttpResponseServerError
Functions [hide private]
 
parse_file_upload(header_dict, post_data)
Returns a tuple of (POST QueryDict, FILES MultiValueDict)
source code
 
parse_cookie(cookie) source code
 
get_host(request) source code
 
str_to_unicode(s, encoding)
Convert basestring objects to unicode, using the given encoding.
source code
Variables [hide private]
  RESERVED_CHARS = "!*'();:@&=+$,/?%#[]"

Imports: os, SimpleCookie, pformat, urlencode, urljoin, MultiValueDict, FileDict, smart_str, iri_to_uri, force_unicode, parse_qsl


Function Details [hide private]

str_to_unicode(s, encoding)

source code 

Convert basestring objects to unicode, using the given encoding. Illegaly encoded input characters are replaced with Unicode "unknown" codepoint (\ufffd).

Returns any non-basestring objects without change.