Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/requests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,13 @@ def from_key_val_list(value):


def to_key_val_list(value):
"""Convert a value to a key-value list for headers or params.

Args:
value: Input value (dict, list, or None).
Returns:
List of tuples or None if invalid.
"""
"""Take an object and test to see if it can be represented as a
dictionary. If it can be, return a list of tuples, e.g.,

Expand Down