import simpleHTTPServer.Server;
import simpleHTTPServer.View;
import simpleHTTPServer.response.StringResponse;
class DemoServer{
public static void main(String[] args){
Server s = new Server();
//Writing views for our server
View mainPage = (request)->{
return new StringResponse(request,"<h1>This is our home page</h1>");
};
s.register("/",mainPage);
s.start();
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
What a better way to practice a particular language other than socket programming
License
adityahp241099/simpleHTTPServer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
What a better way to practice a particular language other than socket programming
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published