Method Protocols.HTTP.Query()->thread_request()
- Method thread_request
Protocols.HTTP.Querythread_request(stringserver,intport,stringquery)
Protocols.HTTP.Querythread_request(stringserver,intport,stringquery,mappingheaders,void|stringdata)- Description
Create a new query object and begin the query.
The query is executed in a background thread; call `() in the object to wait for the request to complete.
queryis the first line sent to the HTTP server; for instance"GET /index.html HTTP/1.1".headerswill be encoded and sent after the first line, anddatawill be sent after the headers.- Returns
Returns the called object.