@@ -83,6 +83,7 @@ def update(
83
83
headers : Optional [Dict [str , str ]] = None ,
84
84
parameters : Optional [Dict [str , Any ]] = None ,
85
85
request_modifier : Optional [Callable [[Request ], Union [Request , None ]]] = None ,
86
+ timeout : Timeout = None ,
86
87
) -> None :
87
88
"""Updates this StacApi's headers, parameters, and/or request_modifer.
88
89
@@ -94,10 +95,14 @@ def update(
94
95
objects before they are sent. If provided, the callable receives a
95
96
`request.Request` and must either modify the object directly or return
96
97
a new / modified request instance.
98
+ timeout: Optional float or (float, float) tuple following the semantics
99
+ defined by `Requests
100
+ <https://requests.readthedocs.io/en/latest/api/#main-interface>`__.
97
101
"""
98
102
self .session .headers .update (headers or {})
99
103
self .session .params .update (parameters or {}) # type: ignore
100
104
self ._req_modifier = request_modifier
105
+ self .timeout = timeout
101
106
102
107
def read_text (self , source : pystac .link .HREF , * args : Any , ** kwargs : Any ) -> str :
103
108
"""Read text from the given URI.
0 commit comments