Skip to content

Finalshare90/Http-Server-Gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Http-Server-Gradle

A handmade HTTP server made in java using sockets, my 3ml parser, lots of digital masochism and now using Gradle!

Good to know:

  • it only uses 1 dependency that you need to compile by hand, my 3ml parser.
  • It only supports Web 1.0 pages and is designed to static websites.
  • Reserved 3ml tags:
    • port: the port that the sockets uses
    • pages: the "prefix" and the path of the page in your server.
    • files: a pages tag, but for other files but html.
    • index: default page for /
    • 404: default page for 404
  • config.3ml example:
[port
5555
end]

[pages
// Your public pages
// your page prefix + his html path
myproducts pages/products.html
news pages/news.html
notaillegalmarket pages/market.html
end]

// No technical reason for it, but i just wanted to make the tag structure looks cool:)
[files
script.js script.js
end]

[index
// Your HTML index file here
pages/anythinghere.html
end]

[404
// Default page for 404 message
pages/404.html
end]

About

A handmade Http Server, but i converted the original project into Gradle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages