9
9
def _get_kwargs (
10
10
* ,
11
11
client : Client ,
12
- param_path : Union [ Unset , str ] = UNSET ,
12
+ param_path : str ,
13
13
param_query : Union [Unset , str ] = UNSET ,
14
+ param_header : Union [Unset , str ] = UNSET ,
15
+ param_cookie : Union [Unset , str ] = UNSET ,
14
16
) -> Dict [str , Any ]:
15
17
url = "{}/same-name-multiple-locations/{param}" .format (client .base_url , param = param_path )
16
18
17
19
headers : Dict [str , Any ] = client .get_headers ()
18
20
cookies : Dict [str , Any ] = client .get_cookies ()
19
21
22
+ if param_header is not UNSET :
23
+ headers ["param" ] = param_header
24
+
25
+ if param_cookie is not UNSET :
26
+ cookies ["param" ] = param_cookie
27
+
20
28
params : Dict [str , Any ] = {
21
29
"param" : param_query ,
22
30
}
@@ -43,13 +51,17 @@ def _build_response(*, response: httpx.Response) -> Response[Any]:
43
51
def sync_detailed (
44
52
* ,
45
53
client : Client ,
46
- param_path : Union [ Unset , str ] = UNSET ,
54
+ param_path : str ,
47
55
param_query : Union [Unset , str ] = UNSET ,
56
+ param_header : Union [Unset , str ] = UNSET ,
57
+ param_cookie : Union [Unset , str ] = UNSET ,
48
58
) -> Response [Any ]:
49
59
kwargs = _get_kwargs (
50
60
client = client ,
51
61
param_path = param_path ,
52
62
param_query = param_query ,
63
+ param_header = param_header ,
64
+ param_cookie = param_cookie ,
53
65
)
54
66
55
67
response = httpx .get (
@@ -62,13 +74,17 @@ def sync_detailed(
62
74
async def asyncio_detailed (
63
75
* ,
64
76
client : Client ,
65
- param_path : Union [ Unset , str ] = UNSET ,
77
+ param_path : str ,
66
78
param_query : Union [Unset , str ] = UNSET ,
79
+ param_header : Union [Unset , str ] = UNSET ,
80
+ param_cookie : Union [Unset , str ] = UNSET ,
67
81
) -> Response [Any ]:
68
82
kwargs = _get_kwargs (
69
83
client = client ,
70
84
param_path = param_path ,
71
85
param_query = param_query ,
86
+ param_header = param_header ,
87
+ param_cookie = param_cookie ,
72
88
)
73
89
74
90
async with httpx .AsyncClient () as _client :
0 commit comments