Wrapper / abstraction layer mechanism that download needed files on demand

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
ivan
Party member
Posts: 1911
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Post by ivan »

If you think it is that easy to add HTTPS to love2d go right ahead. Please send us the binaries for all supported platforms so that somebody can update the love2d.org homepage. And do not forget to test each platform individually and make sure that the same Lua source code works across all platforms. Makes sure to include documentation too.
Also love.filesystem.write is meant for storing data in the save directory. The AppData directory is not a good place to keep your source code or install applications.
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Post by Andlac028 »

As this is the library, that will be added in love 12.0, it aims to support all platforms that love supports (Linux, Windows, macOS, Android, iOS)

Binaries can be either compiled or if you are signed in the github, you can download prebuild versions for macOS, Linux and Windows for latest commit via github actions. Read lua-https on wiki for more info.
glitchapp
Party member
Posts: 235
Joined: Tue Oct 05, 2021 10:34 am
Contact:

Re: Wrapper / abstraction layer mechanism that download needed files on demand

Post by glitchapp »

It is nice that the library will be added on the next version and that it can be used to download from secure addresses. I wonder if I can then request from an https site like this:

Code: Select all

 filename = https.request(filename)
or do I need to add any other api request to accomplish that.
Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests