0.8.1 • Published 2 years ago
lahttp v0.8.1
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