Skip to content

Commit c033624

Browse files
author
Roberto De Ioris
authored
Update Http_API.md
1 parent c7c9d88 commit c033624

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

docs/Http_API.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,62 @@ get the value of a url query string item
140140
Exposed 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+
143199
Exposed methods for IHttpResponse
144200
-
145201

0 commit comments

Comments
 (0)