Skip to content

feat(proxy): add Unix socket proxy support - #900

Merged
0x676e67 merged 19 commits into
mainfrom
unix
Aug 16, 2025
Merged

feat(proxy): add Unix socket proxy support#900
0x676e67 merged 19 commits into
mainfrom
unix

Conversation

@0x676e67

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for Unix domain socket connections to the HTTP client, enabling communication through local sockets instead of TCP/IP. This is particularly useful for communicating with services like Docker daemon or other local services that expose APIs over Unix sockets.

Key changes include:

  • Implementation of Unix socket connection support with UnixConnector and related types
  • Extension of client builder and request builder APIs to accept Unix socket paths
  • TLS support over Unix domain sockets for secure local communication

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/core/client/service/meta.rs Adds Unix socket options accessor to connection metadata
src/core/client/options/mod.rs Extends request options to include Unix connection configuration
src/core/client/connect/uds.rs Implements core Unix domain socket connector functionality
src/core/client/connect/mod.rs Exports Unix socket types and reorganizes module structure
src/client/request.rs Adds unix_socket() method to request builder API
src/client/http/mod.rs Integrates Unix socket support into main client configuration
src/client/http/connect/uds.rs Provides ergonomic conversion trait for Unix socket paths
src/client/http/connect/tls_info.rs Extends TLS info support for Unix streams
src/client/http/connect/mod.rs Exposes Unix domain socket module
src/client/http/connect/connector.rs Core connector logic for Unix socket connections with TLS
src/client/http/connect/conn.rs Connection trait implementations for Unix streams
examples/unix_socket.rs Demonstrates Unix socket usage with Docker API

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/core/client/service/meta.rs Outdated
Comment thread src/core/client/connect/uds.rs Outdated
Comment thread src/core/client/connect/uds.rs Outdated
Comment thread src/client/request.rs Outdated
Comment thread src/client/http/connect/connector.rs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@0x676e67
0x676e67 marked this pull request as ready for review August 16, 2025 05:35
@0x676e67 0x676e67 changed the title feat(proxy): support unix socket proxy connection feat(proxy): support Unix socket proxy connections Aug 16, 2025
@0x676e67 0x676e67 changed the title feat(proxy): support Unix socket proxy connections feat(proxy): add Unix socket proxy support Aug 16, 2025
@0x676e67
0x676e67 merged commit d60a6f3 into main Aug 16, 2025
@0x676e67
0x676e67 deleted the unix branch August 16, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants