In Python requests we can pass a files= argument and send files in POST request:
http://docs.python-requests.org/en/master/user/quickstart/#post-a-multipart-encoded-file
This is needed by lua-mastodon to send messages to the network with file attachments:
https://github.com/hishamhm/lua-mastodon/blob/master/mastodon.lua#L342
I already wrote the code using the files argument, since I assumed lua-requests supported it already, so for now that field is a no-op, but it's ready if the feature comes in the future. :)
Thank you for such a great library! I wouldn't have written lua-mastodon without it!