Git Product home page Git Product logo

http-server-online's Introduction

HTTP Server Online

Start a local HTTP server without any tools, just open a web page.

demo

Try It Online

https://http-server.etherdream.com

OR https://hs.etherdream.com

http-server.mp4

Custom 404

If /path/to/foo does not exist, we will try:

  • /path/to/404.html

  • /path/404.html

  • /404.html

  • return 404 Not Found

Index Page

For /path/to/, we will try:

  • /path/to/index.html

  • 404.html (/path/to/404.html, /path/404.html, /404.html)

  • Directory Indexing

Trailing Slash

If /path/to is a directory, we will redirect to /path/to/.

Stop

Access /?stop to stop the server.

Limitations

  • Your browser must support File System Access API and Service Worker API

  • The target website can not use Service Worker API because it is already occupied

  • The target website can only be accessed in the same browser and session

TODO

This is just a toy that took a few hours, and more interesting features will be added later.

  • Tunnel (expose local server to the Internet)

  • P2P (HTTP over WebRTC)

License

MIT

http-server-online's People

Contributors

etherdream avatar

Watchers

 avatar

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.