0.8.1 • Published 2 years ago

lahttp v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

LaHTTP


About

LaHttp LLHS Stands For Lazy Loading HTTP Server.

Why LaHTTP?

Because It's Light weight.

And It's Easy To use No Details No Hard API.

Bad Things About LaHTTP

LaHTTP is A LHHS (Local Host HTTP Server), So It's Only Works For localhost Domain.

Depencies

Using only:

  • Express / Vercel

  • Terminal-kit / Cronvel

  • Path / Node

  • Http / Node

  • FS / Node

  • URL / Unk

Learn with Examples!

const lh = require("lahttp") // Imported The Module
const cp = lh.createPage() // lh.createPage('/lol','./xd.html')
lh.Port = 8080 // 8080 , 8000 , 8181 and More...
lh.Settings.homepageFile = "path/to/a/file.html" // If You Don't Using Replace With 'null'

cp('/signup','./signup.html') // Succesfully Created A page!

Tips

  • Use localhost:port/headers for get Headers.

  • If mainPage is null Code will replace main page as Template

0.8.1

2 years ago

0.8.0

2 years ago

0.7.9

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago