File tree 2 files changed +28
-0
lines changed
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,17 @@ Update query params of given url and return new url.
66
66
>> > update_query_params(' http://example.com' , {' foo' : 1 })
67
67
' http://example.com?foo=1'
68
68
```
69
+
70
+
71
+ ## request.cookies_str_to_dict
72
+ ``` python
73
+ cookies_str_to_dict(cookies)
74
+ ```
75
+
76
+ Convert cookies from str to dict.
77
+
78
+ ``` python
79
+ >> > from pydu.request import cookies_str_to_dict
80
+ >> > cookies_str_to_dict(' a=a;b=b' )
81
+ {' a' : ' a' , ' b' : ' b' }
82
+ ```
Original file line number Diff line number Diff line change @@ -62,3 +62,17 @@ update_query_params(url, params)
62
62
>> > update_query_params(' http://example.com' , {' foo' : 1 })
63
63
' http://example.com?foo=1'
64
64
```
65
+
66
+
67
+ ## request.cookies_str_to_dict
68
+ ``` python
69
+ cookies_str_to_dict(cookies)
70
+ ```
71
+
72
+ 将字符串类型的Cookies转换为字典对象。
73
+
74
+ ``` python
75
+ >> > from pydu.request import cookies_str_to_dict
76
+ >> > cookies_str_to_dict(' a=a;b=b' )
77
+ {' a' : ' a' , ' b' : ' b' }
78
+ ```
You can’t perform that action at this time.
0 commit comments