200413-java-spark / 200413-java-spark.github.io

https://200413-java-spark.github.io
0 stars 2 forks source link

What Are The Features Required To Qualify A Http Server? #5

Closed johnMedlockDev closed 2 years ago

johnMedlockDev commented 4 years ago

Make server listen on port 80 / 8080.

Define headers routes: status code 200 // 404 methods: GET // POST

routes: client GET / request response { try {

status code 200
methods: GET
<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<p> some text</p>
</body>

} catch (e){

status code 404
methods: GET
<!DOCTYPE html>
<html lang="en">
<head>
</head>
 <body>
  <p>404 page not found</p>
 </body>

} }

John, Pejal, Garrison, Christian