An overview of Kivy's built in UrlRequest feature, as brief as I could make it. UrlRequest is used to perform standard REST functions such as GET, POST, PATCH, etc.
👇 LINKS AND INFO! 👇
Consider donating to me if you are able to and appreciate my content: https://www.paypal.me/eriksandbergsof...
UrlRequest is much better than using the standard requests package because UrlRequests are asynchronous by default. This means that while your UrlRequest is working, your GUI is not frozen.
UrlRequest automatically assumes you want to do a get request if you don't include any data in the body of the request. To include data, you send a string of a dictionary as the "req_body" parameter. Be very cautious about the use of single/double quotes when writing the strings. The proper use of quotes is shown below:
req_body = "{'name': 'Erik'}"
Sending headers with the request is the exact same, but using the req_headers keyword instead of req_body.
Let me know if this helped you out, I love hearing your feedback. Thanks for watching!
Erik
Show your support the founders of Kivy! They're looking to secure funding for full time development of this awesome framework. Donate here: https://opencollective.com/kivy