Ideas:
1. Create a ServerSocket object.
2. Call the Accept method of the ServerSocket object, wait for the connection, and the connection succeeds to return a socket object, otherwise it blocks waiting.
3. Obtain the InputStream and outputstream byte streams from the socket object, which correspond to the request and response responses respectively.
4. Processing request: Read the InputStream byte stream information, turn into a string form, and parse, here the resolution is relatively simple, just get the URI information.
5. Processing response: Based on the parsed URI information, look for the requested resource file from the Web-root directory, read the resource file, and write it to the OutputStream byte stream.
6. Close the socket object.
7. Go to step 2 and continue waiting for the connection request.
A simple HTTP server implementation