Package restkit :: Module forms
[hide private]

Module forms

source code

Classes [hide private]
  BoundaryItem
  MultipartForm
Functions [hide private]
 
form_encode(obj, charset='utf8') source code
 
multipart_form_encode(params, headers, boundary, quote=<function url_quote at 0x10626ea28>)
Creates a tuple with MultipartForm instance as body and dict as headers
source code
Variables [hide private]
  MIME_BOUNDARY = 'END_OF_PART'
  CRLF = '\r\n'
  __package__ = 'restkit'
Function Details [hide private]

multipart_form_encode(params, headers, boundary, quote=<function url_quote at 0x10626ea28>)

source code 
Creates a tuple with MultipartForm instance as body and dict as headers

params
  dict with fields for the body

headers
  dict with fields for the header

boundary
  string to use as boundary

quote (default: url_quote)
  some callable expecting a string an returning a string. Use for quoting of
  boundary and form-data keys (names).