simple HTTP server in Java using only Java SE API

前端 未结 17 2008
无人共我
无人共我 2020-11-22 13:28

Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and man

17条回答
  •  生来不讨喜
    2020-11-22 14:18

    How about Apache Commons HttpCore project?

    From the web site:... HttpCore Goals

    • Implementation of the most fundamental HTTP transport aspects
    • Balance between good performance and the clarity & expressiveness of API
    • Small (predictable) memory footprint
    • Self contained library (no external dependencies beyond JRE)

提交回复
热议问题