Created
March 4, 2016 06:44
-
-
Save ikariiin/c5d8e4ecd35751492ec8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ File Line Separator Declaration. The Separator Is Used To Explode The File Contents In The Parser; | |
files line-break \n ; | |
/ http-header Option Allows To Manipulate The HTTP-HEADERS Sent By The Server; | |
http-header set X-Powered-By Gourab's-Socket-Server; | |
/ A '#' Declaration Is Preceded By A Routing Instruction; | |
/ First argument to 'route' is which GET request has to be routed like '/' or '/loopback' whatever; | |
/ And the second argument is what type of argument the third argument would be; | |
/ At last the third argument is which static data or dynamic file should be served. The static static thing is kept for the purposes of images. (DATA URI); | |
# route / to file index.html; | |
/ This instruction tells the router to route everything else to their destined file. Like GET /home.html would point to __DIR__/home.html; | |
# route all-else to file respective; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment