Asynchronous HTTP request using GIO

I would appreciate an example of making an async HTTP POST request using Python GIO binding.

Edit . The example you were looking for without using Twisted.

+2


source to share


2 answers


An example of using Twisted Deferred objects is available on James Henstridge's blog .



+1


source


Sorry this is not an HTTP POST (only GET), but it uses Gio to asynchronously request a URL with a callback that processes the resulting data on load.



https://github.com/robru/gottengeography/blob/65505bd0cf0060ec7397849e7c62c231367c7f1d/gg/datatypes.py#L242

0


source







All Articles