xrootdlib.utility module¶
-
parse_cgi(cgi_data: AnyStr) → Dict[AnyStr, AnyStr]¶ Parse cgi data in the form
&key1=value1&key2=value2to a mappingParameters: cgi_data – raw CGI data in as unicode or bytes Returns: a mapping from keys to values Note that this does not perform any implicit type conversions: keys and values have the same type as
cgi_data. For example, a value ofb'1'is not converted to the integer1.>>> parse_cgi(b'&foo=1') {b'foo': b'1'}
-
slot_repr(instance)¶