gufo.http.util¶
Various utilities.
merge_dict(x, y)
¶
Merge optional dicts of x and y.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x |
Optional[Dict[str, bytes]]
|
First dictionary. |
required |
y |
Optional[Dict[str, bytes]]
|
Second dictionary. |
required |
Return
- None, if both dicts are empty.
- Resulting merging dict.