diff options
Diffstat (limited to 'src/zen/zenserviceclient.h')
| -rw-r--r-- | src/zen/zenserviceclient.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zen/zenserviceclient.h b/src/zen/zenserviceclient.h index 00178b455..4e0f13982 100644 --- a/src/zen/zenserviceclient.h +++ b/src/zen/zenserviceclient.h @@ -33,6 +33,12 @@ public: HttpClient& Http() { return m_Http; } const std::string& HostSpec() const { return m_HostSpec; } + /// True if the resolved host spec targets a Unix domain socket + /// (i.e. `unix:///...`). Useful for command paths that don't make + /// sense over a unix transport (browser launches, WebSocket dialing + /// without UnixSocketPath plumbing, etc.). + bool IsUnixSocket() const; + private: std::string m_HostSpec; HttpClient m_Http; |