japangift.blogg.se

Python dict
Python dict










  1. #Python dict full#
  2. #Python dict code#

Non-form data posted in the request, access this through the Providing that the request contains form data. POST ¶Ī dictionary-like object containing all given HTTP POST parameters, content_params ¶Ī dictionary of key/value parameters included in the CONTENT_TYPEĪ dictionary-like object containing all given HTTP GET parameters. Useful if you know the form data is not in the DEFAULT_CHARSETĪ string representing the MIME type of the request, parsed from theĬONTENT_TYPE header.

python dict python dict

Any subsequent attribute accesses (such as readingįrom GET or POST) will use the new encoding value. You can write to this attribute to change the encoding used whenĪccessing the form data. encoding ¶Ī string representing the current encoding used to decode form submissionĭata (or None, which means the DEFAULT_CHARSET setting is method = "POST" : do_something_else () HttpRequest. method = "GET" : do_something () elif request. method ¶Ī string representing the HTTP method used in the request. "/minfo", then path might be "/minfo/music/bands/the_beatles/"Īnd path_info would be "/music/bands/the_beatles/".

#Python dict code#

Of path can make your code easier to move betweenįor example, if the WSGIScriptAlias for your application is set to Of the path, no matter what web server is being used. The path_info attribute always contains the path info portion Host name is split up into a script prefix portion and a path info Under some web server configurations, the portion of the URL after the

#Python dict full#

path ¶Ī string representing the full path to the requested page, not includingĮxample: "/music/bands/the_beatles/" HttpRequest. Stream methods will produce a RawPostDataException. The body attribute after reading the request with either of these I/O HttpRequest.read() or HttpRequest.readline(). You can also read from an HttpRequest using a file-like interface with

python dict

For processing conventional form data, use This is useful for processingĭata in different ways than conventional HTML forms: binary images, The raw HTTP request body as a bytestring. scheme ¶Ī string representing the scheme of the request ( http or https All attributes should be considered read-only, unless stated otherwise.












Python dict