seznam / httpmockserver

C++ HTTP mock server for client tests.
https://seznam.github.io/httpmockserver
MIT License
32 stars 13 forks source link

Support for Unix Domain Sockets #4

Open Mythra opened 5 years ago

Mythra commented 5 years ago

Is there any support for Unix Domain Sockets in this library? I'm not finding anything to suggest as such, but wanted to bring it up incase I'm missing something.

I have a client that is connecting to an HTTP Server over a UDS (specifically: /var/run/docker.sock), and I was hoping to test it by just passing in a path to a mock server over UDS, rather than adding a branch for determining if I need to connect over a port.

johniez commented 5 years ago

This is currently not supported, but it won't be too difficult to add it, as the libmicrohttpd (which is used internally) supports it.