Skip to content

一个java实现的简单的web服务器,主要目的是为了理解web服务器的工作原理。http请求的接收和返回使用JDK自带的HttpServer,请求处理和页面解析是自己实现的。目前已经能够支持web服务器一些基本的功能。

License

Notifications You must be signed in to change notification settings

NotBadPad/easy-httpserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

learn-1

示例项目第一版 完成功能如下

  • 基本的http请求接收和响应
  • 可以分别处理动态和静态资源请求,对于静态请求直接返回对应资源,对于动态请求处理后返回
  • 简单的模板处理,通过替代符替换的方法实现模板数据渲染

About

一个java实现的简单的web服务器,主要目的是为了理解web服务器的工作原理。http请求的接收和返回使用JDK自带的HttpServer,请求处理和页面解析是自己实现的。目前已经能够支持web服务器一些基本的功能。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages