File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,62 @@ get the value of a url query string item
140140Exposed methods for IHttpRequest
141141-
142142
143+ ### bind_on_process_request_complete(callable)
144+
145+ Assign a python callable to the OnProcessRequestComplete event
146+
147+ ### bind_on_request_progress(callable)
148+
149+ Assign a python callable to the OnRequestProcess event
150+
151+ ### append_to_header(key, value)
152+
153+ append a new value to an already existent request header
154+
155+ ### cancel_request()
156+
157+ cancel a running request
158+
159+ ### get_elapsed_time()
160+
161+ get the amount of seconds the request took to complete (governed by tick)
162+
163+ ### get_response()
164+
165+ get the IHttpResponse of the request (if available)
166+
167+ ### get_status()
168+
169+ get the status of the request (see above for possible values)
170+
171+ ### get_verb()
172+
173+ get the http METHOD of the request (if set)
174+
175+ ### process_request()
176+
177+ run the request
178+
179+ ### set_content(body)
180+
181+ set the request body (as string or bytes)
182+
183+ ### set_header(key, value)
184+
185+ set a request header
186+
187+ ### set_url(url)
188+
189+ assign the url to the request
190+
191+ ### set_verb(http_method)
192+
193+ assign the http METHOD to the request
194+
195+ ### tick(delta_seconds)
196+
197+ 'tick' the http engine
198+
143199Exposed methods for IHttpResponse
144200-
145201
You can’t perform that action at this time.
0 commit comments