rst.forms

class rtkit.forms.BoundaryItem(name, value, fname=None, filetype=None, filesize=None)[source]

Bases: object

encode(boundary)[source]
Returns:A string encoding of this parameter.
encode_hdr(boundary)[source]
Returns:The header of the encoding of this parameter
encode_unreadable_value(value)[source]
iter_encode(boundary, blocksize=16384)[source]
class rtkit.forms.MultipartForm(params, boundary)[source]

Bases: object

Represents an encoded Form

get_size()[source]
rtkit.forms.encode(value, headers)[source]
rtkit.forms.to_bytestring(s)[source]
rtkit.forms.url_quote(s, charset='utf-8', safe='/:')[source]

URL encode a single string with a given encoding.