Giter Club home page Giter Club logo

Comments (3)

svenstaro avatar svenstaro commented on April 27, 2024

That would be pretty easy to implement I think but would it be something that's actually useful? I suppose if you wanted to share miniserve you could just share the dir it's in. It's also not a given that the OS that's accessing your host is compatible with the binary that you're running. Can you illustrate your use case for me?

However, I do like a self information page.

from miniserve.

dcarosone avatar dcarosone commented on April 27, 2024

Can you illustrate your use case for me?

It just seemed like a self-evident implication of the "single static binary" aspect. I could make one up, such as hosts that are not connected to the internet and want to get going, but I don't have any particular one in mind. It seems like part of the basic concept is to be useful for general, quick, unforseen circumstances, maybe where other more useful connectivity (like ssh) doesn't exist or needs more setup (credentials).

I suppose if you wanted to share miniserve you could just share the dir it's in. It's also not a given that the OS that's accessing your host is compatible with the binary that you're running.

True, but that's why I suggested a convenience option to serve the redirect and the file with the longer name (so the thing you wind up downloading is clearly OS specific, and you can spot mismatches).

However, I do like a self information page.

That would work too instead of a redirect - a bit of self information, potentially with a link to the binary as well.

from miniserve.

svenstaro avatar svenstaro commented on April 27, 2024

Since this wouldn't add too much complexity and I can see a limited case of uses where this would be convenient to have, I'd accept a PR that'd add this.

Do we just want to stick all of this in the footer of every generated page or should it rather be its own page, linked to by the footer?

from miniserve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.