You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -k -v -X GET "http://localhost" --unix-socket /tmp/uds-socket/uds.sock
Note: Unnecessary use of -X or --request, GET is already inferred.
* Rebuilt URL to: http://localhost/
* Trying /tmp/uds-socket/uds.sock...
* Connected to localhost (/tmp/uds-socket/uds.sock) port 80 (#0)
> GET / HTTP/1.1
> Host: localhost
> User-Agent: curl/7.61.1
> Accept: */*
Hello,
I am trying to bring up REST API server on UDS with alpakka as documented in https://doc.akka.io/docs/alpakka/current/unix-domain-socket.html#
Here is the sample code .
It seems to start the server on UDS but not sure how to specify the routes as the above example doesn't seem to accept route info.
Trying to access using socket file hangs.
I found few examples for accessing a REST endpoint which is already exposed on a particular socket path (ex: https://stackoverflow.com/questions/51565935/how-to-access-rest-api-on-a-unix-domain-socket-with-akka-http-or-alpakka), but I haven't come across any sample on hosting REST end points on UDS using alpakka or akka-http.
Would you please let me know if its possible? If yes, kindly share the sample.
Regards,
Sobha
The text was updated successfully, but these errors were encountered: