Java開發的HTTP服務器:java-httpserver
java-httpserver是一個采用Java開發的HTTP服務器。
java-httpserver由三個主要組件組成:
-
HTTPServer, a really simple class that usually runs in the background, waiting for requests, and sending them off to the HTTPRequest class to get things done.
-
HTTPRequest, a class that takes in a Socket, reads from it, and splits apart the incoming data into its component parts (provided that the incoming Socket is following the HTTP protocol).
-
HTTPHandler, an abstract class whos subclasses are used to actually do things with the data. It also sends stuff back to the client.
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!