Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Make core QgsNetworkAccessManager more user/python friendly #123
QGIS Enhancement: Title
Author Richard Duivenvoorde (@rduivenvoorde)
Version QGIS 3.x
Currently developers (both py and cpp) can use QgsNetworkAccessManager to do their network related actions:
It is a very thin wrapper around QtNetworkAccessManager
If I'm correct, the Qgs-version adds:
Python plugin developers, often use other Network related libraries to do requests to webservices (modules like http2, requests etc). Thereby often 'forgetting' about proxies and QGIS-own authentication framework.
Alessandro/Boundless for QGIS2 introduced a Python NetworkAccessManager, mimicking the http2 api:
While this module mostly works in QGIS3 too, I think it is nicer to actually add some of these utility methods to core QgsNetworkAccessManager class.
In this way it is natively available for Python developers, and they do not have to depend on external libraries. It also brings (hopefully) the right way of threading to a larger audience (#122 (comment))
Some nice to have things:
See for example: http://docs.python-requests.org/en/master/