cjstehno / ersatz

🤖 A simulated HTTP server for testing client code with configurable responses.
https://cjstehno.github.io/ersatz
Apache License 2.0
47 stars 5 forks source link

Http over Unix file socket support #123

Closed cjstehno closed 3 years ago

cjstehno commented 4 years ago

I'd like to have Ersatz work for HTTP over unix file socket (e.g. for docker client testing). The netty http client/server supports this but I would have to carve out the internal server and allow for swapping them out... or switch over to netty all the way.

cjstehno commented 4 years ago

This work depends on #124 being done since the underlying server will need to be swapped out for a Netty server implementation. Support for HTTP/1.0 will also be required (#125) to meet the goal of testing Docker clients over unix file sockets, as will a means of specifying the server host explicitly as a file (which now defaults to localhost).

cjstehno commented 3 years ago

I am going to close this for now. A good API should allow for an alternate standard HTTP approach and this feature would not work on Windows, which brings additional challenges.