Undocumented
Class |
|
No class docstring; 0/3 instance variable, 9/10 methods documented |
Function | urlencode |
Undocumented |
Class | _ |
Undocumented |
Class | _ |
Undocumented |
Function | _coerced |
Carefully coerce *params* in the same way as `urllib.parse.urlencode()` |
Function | _convert |
Files can be passed in a variety of formats: |
Function | _convert |
Undocumented |
Function | _from |
Undocumented |
Function | _from |
Undocumented |
Function | _guess |
Undocumented |
Function | _query |
Percent-encode a querystring name or value. |
Function | _scoped |
Create a CookieJar from a dictionary whose cookies are all scoped to the given URL's origin. |
Constant | _NOTHING |
Undocumented |
Carefully coerce *params* in the same way as `urllib.parse.urlencode()` Parameter names and values are coerced to unicode, which is encoded as UTF-8 and then percent-encoded. As a special case, `bytes` are directly percent-encoded. :param params: A mapping or sequence of (name, value) two-tuples. The value may be a list or tuple of multiple values. Names and values may be pretty much any type. :returns: A generator that yields two-tuples containing percent-encoded text strings. :rtype: Iterator[Tuple[Text, Text]]
Files can be passed in a variety of formats: * {"fieldname": open("bla.f", "rb")} * {"fieldname": ("filename", open("bla.f", "rb"))} * {"fieldname": ("filename", "content-type", open("bla.f", "rb"))} * Anything that has iteritems method, e.g. MultiDict: MultiDict([(name, open()), (name, open())] Our goal is to standardize it to unified form of: * [(param, (file name, content type, producer))]
Percent-encode a querystring name or value. :param v: A value. :returns: The value, coerced to a string and percent-encoded as appropriate for a querystring (with space as ``+``).