33 | * GET /search?hl=zh-CN&source=hp&q=domety&aq=f&oq= HTTP/1.1 34 | * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 35 | * application/msword, application/x-silverlight 36 | * Referer: http://www.google.cn/ 37 | * Accept-Language: zh-cn 38 | * Accept-Encoding: gzip, deflate 39 | * User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; TheWorld) 40 | * Host: www.google.cn 41 | * Connection: Keep-Alive 42 | * Cookie: PREF=ID=80a06da87be9ae3c:U=f7167333e2c3b714:NW=1:TM=1261551909:LM=1261551917:S=ybYcq2wpfefs4V9g; 43 | * NID=31=ojj8d-IygaEtSxLgaJmqSjVhCspkviJrB6omjamNrSm8lZhKy_yMfO2M4QMRKcH1g0iQv9u-2hfBW7bUFwVh7pGaRUb0RnHcJU37y- 44 | * FxlRugatx63JLv7CWMD6UB_O_r 45 | * 46 | * POST /search HTTP/1.1 47 | * Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, 48 | * application/msword, application/x-silverlight 49 | * Referer: http://www.google.cn/ 50 | * Accept-Language: zh-cn 51 | * Accept-Encoding: gzip,deflate 52 | * User-Agent: Mozilla/4.0(compatible;MSIE6.0;Windows NT5.1;SV1;.NET CLR2.0.50727;TheWorld) 53 | * Host: www.google.cn 54 | * Connection: Keep-Alive 55 | * Cookie: PREF=ID=80a06da87be9ae3c:U=f7167333e2c3b714:NW=1:TM=1261551909:LM=1261551917:S=ybYcq2wpfefs4V9g; 56 | * NID=31=ojj8d-IygaEtSxLgaJmqSjVhCspkviJrB6omjamNrSm8lZhKy_yMfO2M4QMRKcH1g0iQv9u-2hfBW7bUFwVh7pGaRUb0RnHcJU37y- 57 | * FxlRugatx63JLv7CWMD6UB_O_r 58 | *
59 | * hl=zh-CN&source=hp&q=domety
60 | */
61 |
62 | @Data
63 | @Slf4j
64 | public class Request {
65 |
66 | private AbstractRequestHandler requestHandler;
67 | private RequestMethod method;
68 | private String url;
69 | private Map
26 | * <html>
27 | * <head>
28 | * <title>Wrox Homepage</title>
29 | * </head>
30 | * <body>
31 | * <!-- body goes here -->
32 | * </body>
33 | * </html>
34 | */
35 | @Slf4j
36 | public class Response {
37 | private StringBuilder headerAppender;
38 | private List 400 BAD_REQUEST 404 NOT_FOUND 500 INTERNAL_SERVER_ERROR
9 | Click me!
10 |
11 |
--------------------------------------------------------------------------------
/example/src/main/webapp/static/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/defineYIDA/LWebServer/43df5270eb4126f646e355ada579339939d778c8/example/src/main/webapp/static/favicon.ico
--------------------------------------------------------------------------------
/example/src/main/webapp/views/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |