simple HTTP server in Java using only Java SE API

前端 未结 17 1926
无人共我
无人共我 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:25

    Check out NanoHttpd

    "NanoHTTPD is a light-weight HTTP server designed for embedding in other applications, released under a Modified BSD licence.

    It is being developed at Github and uses Apache Maven for builds & unit testing"

提交回复
热议问题