module documentation
Undocumented
Class |
|
Undocumented |
Function | curl |
Convert a cURL command syntax to Request kwargs. |
Variable | curl |
Undocumented |
Variable | safe |
Undocumented |
Function | _parse |
Undocumented |
def curl_to_request_kwargs(curl_command:
str
, ignore_unknown_options: bool
= True) -> dict
:
(source)
¶
Convert a cURL command syntax to Request kwargs. :param str curl_command: string containing the curl command :param bool ignore_unknown_options: If true, only a warning is emitted when cURL options are unknown. Otherwise raises an error. (default: True) :return: dictionary of Request kwargs